realtek: Don't reinitialize static variables to 0

Static variables (and global variables) are initialized to 0 by
default. It is not needed and discouraged to reinitialize them
to 0.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Sven Eckelmann 2025-11-23 17:04:21 +01:00 committed by Hauke Mehrtens
parent 6eb46033eb
commit 612f1e6afb

View file

@ -1142,7 +1142,7 @@ txdone:
static u16 rtl83xx_pick_tx_queue(struct net_device *dev, struct sk_buff *skb, static u16 rtl83xx_pick_tx_queue(struct net_device *dev, struct sk_buff *skb,
struct net_device *sb_dev) struct net_device *sb_dev)
{ {
static u8 last = 0; static u8 last;
last++; last++;
return last % TXRINGS; return last % TXRINGS;