net: tg3: tidy up loop, remove need to compute off with a multiply
authorColin Ian King <colin.king@canonical.com>
Fri, 8 May 2020 23:14:47 +0000 (00:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 05:45:54 +0000 (22:45 -0700)
commit4d2c99940825637d007da150ad03a6f4442de0f0
tree5d4dce1680f21d916ddc4a61fa7c1f5807bf5a5b
parent9dfff80280b63a37ca8db3d733d59a4e014d5051
net: tg3: tidy up loop, remove need to compute off with a multiply

Currently the value for 'off' is computed using a multiplication and
a couple of statements later off is being incremented by len and
this value is never read.  Clean up the code by removing the
multiplication and just increment off by len on each iteration.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/tg3.c