]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fjes: use currently unused variable my_epid and max_epid
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Jul 2018 10:05:32 +0000 (11:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 10:34:21 +0000 (19:34 +0900)
commitb67030b139de957f1266555009f5f19feac819c4
tree69bb3efa3d07f62b8d55fbed25c85d23c0a1d6bb
parent2f9be18164add28fa231950e20ad9a978a34f13d
fjes: use currently unused variable my_epid and max_epid

Variables my_epid and max_epid are currently assigned and not being
used - however, I suspect they were intended to be used in the for-loops
to reduce the dereferencing of hw.  Replace hw->my_epid and hw->max_epid
with these variables.

Cleans up clang warnings:
warning: variable 'my_epid' set but not used [-Wunused-but-set-variable]
variable 'max_epid' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c