summaryrefslogtreecommitdiff
path: root/drivers/vme
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-14 19:33:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-16 13:03:53 +0300
commit566208494e4d7cc7bdac48d4c9b99d4fcb8fca48 (patch)
tree0c57baaf335ae2cc9f45d0234e6b343d6e24c8c5 /drivers/vme
parent83cf9cd6d50ed4f7e6ae265e80e38b235c792f5f (diff)
downloadlinux-566208494e4d7cc7bdac48d4c9b99d4fcb8fca48.tar.xz
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>
Diffstat (limited to 'drivers/vme')
-rw-r--r--drivers/vme/bridges/vme_ca91cx42.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/vme/bridges/vme_ca91cx42.c b/drivers/vme/bridges/vme_ca91cx42.c
index 5dd284008630..53bdc256805f 100644
--- a/drivers/vme/bridges/vme_ca91cx42.c
+++ b/drivers/vme/bridges/vme_ca91cx42.c
@@ -970,7 +970,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image,
{
u32 result;
uintptr_t pci_addr;
- int i;
struct ca91cx42_driver *bridge;
struct device *dev;
@@ -978,7 +977,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image,
dev = image->parent->parent;
/* Find the PCI address that maps to the desired VME address */
- i = image->number;
/* Locking as we can only do one of these at a time */
mutex_lock(&bridge->vme_rmw);