diff options
| author | 2025-11-14 15:29:10 +0000 | |
|---|---|---|
| committer | 2025-11-17 19:47:58 -0800 | |
| commit | 0a20999ed4521cd18348a3ca0a55f3406f879f7a (patch) | |
| tree | 42096ca72b01b9afd2dd3cd79b876d1fb7211016 /drivers/net/ibm_emac/ibm_emac_debug.c | |
| parent | net: stmmac: remove unnecessary .use_prio queue initialisation (diff) | |
| download | wireguard-linux-0a20999ed4521cd18348a3ca0a55f3406f879f7a.tar.xz wireguard-linux-0a20999ed4521cd18348a3ca0a55f3406f879f7a.zip | |
net: stmmac: remove unnecessary .prio queue initialisation
stmmac_platform.c explicitly sets .prio to zero if the snps,priority
property is not present in DT for the queue. However, as the struct
is allocated using devm_kzalloc(), all members default to zero unless
explicitly initialised, and of_property_read_u32() will not write to
its argument if the property is not found. Thus, explicitly setting
these to zero is unnecessary. Remove these.
$ grep '\.prio =' *.c
stmmac_platform.c: plat->rx_queues_cfg[queue].prio = 0;
stmmac_platform.c: plat->tx_queues_cfg[queue].prio = 0;
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vJvja-0000000EVkI-0zUH@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ibm_emac/ibm_emac_debug.c')
0 files changed, 0 insertions, 0 deletions
