mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 07:34:40 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue