net: broadcom: bcm4908enet: remove redundant variable bytes
authorColin Ian King <colin.i.king@gmail.com>
Wed, 22 Dec 2021 00:39:37 +0000 (00:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:59:19 +0000 (23:59 +0900)
commit9711616a49086453f82d6571a57fc393a60d1d97
treeef4caf9c605d2ce929c4e2b97e14a237623498b9
parentb317d53680b149e2f1177ceb893a20eeea5a4413
net: broadcom: bcm4908enet: remove redundant variable bytes

[ Upstream commit 62a3106697f3c6f9af64a2cd0f9ff58552010dc8 ]

The variable bytes is being used to summate slot lengths,
however the value is never used afterwards. The summation
is redundant so remove variable bytes.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211222003937.727325-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: ef3556ee16c6 ("net: broadcom: bcm4908_enet: update TX stats after actual transmission")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bcm4908_enet.c