Commit 56620849 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMartyn Welch <martyn@welchs.me.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83cf9cd6
...@@ -970,7 +970,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image, ...@@ -970,7 +970,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image,
{ {
u32 result; u32 result;
uintptr_t pci_addr; uintptr_t pci_addr;
int i;
struct ca91cx42_driver *bridge; struct ca91cx42_driver *bridge;
struct device *dev; struct device *dev;
...@@ -978,7 +977,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image, ...@@ -978,7 +977,6 @@ static unsigned int ca91cx42_master_rmw(struct vme_master_resource *image,
dev = image->parent->parent; dev = image->parent->parent;
/* Find the PCI address that maps to the desired VME address */ /* 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 */ /* Locking as we can only do one of these at a time */
mutex_lock(&bridge->vme_rmw); mutex_lock(&bridge->vme_rmw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment