Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vme: ca91cx42: remove redundant variable i

Variable i is being assigned but is never used hence it is redundant
and can be removed.

Cleans up clang warning:
warning: variable 'i' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Martyn Welch <martyn@welchs.me.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
56620849 83cf9cd6

-2
-2
drivers/vme/bridges/vme_ca91cx42.c
··· 970 970 { 971 971 u32 result; 972 972 uintptr_t pci_addr; 973 - int i; 974 973 struct ca91cx42_driver *bridge; 975 974 struct device *dev; 976 975 ··· 977 978 dev = image->parent->parent; 978 979 979 980 /* Find the PCI address that maps to the desired VME address */ 980 - i = image->number; 981 981 982 982 /* Locking as we can only do one of these at a time */ 983 983 mutex_lock(&bridge->vme_rmw);