mirror of
https://github.com/Ansuel/openwrt.git
synced 2025-12-16 06:59:40 +00:00
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:
parent
6eb46033eb
commit
612f1e6afb
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user