]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2586219f437ab7a138c9f9c8df17be3aa1204474
tree5d4dce1680f21d916ddc4a61fa7c1f5807bf5a5b
parent063d47414532e77ae8d2263e800b2f30dda05773
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