diff options
| author | Sven Eckelmann | 2025-11-23 16:04:21 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-11-24 23:28:50 +0000 |
| commit | 612f1e6afb0bc64656b08876570b2c569f296227 (patch) | |
| tree | 75010045a230bd3afb38ab83d84a1e6e817b64a6 | |
| parent | 6eb46033eb21cfda4c13a02d7de5ab3d38f759f1 (diff) | |
| download | openwrt-612f1e6afb0bc64656b08876570b2c569f296227.tar.gz | |
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>
| -rw-r--r-- | target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c index 61dbb149ee..6beab1c7f3 100644 --- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c @@ -1142,7 +1142,7 @@ txdone: static u16 rtl83xx_pick_tx_queue(struct net_device *dev, struct sk_buff *skb, struct net_device *sb_dev) { - static u8 last = 0; + static u8 last; last++; return last % TXRINGS; |