mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-06 17:15:35 -05:00
net/core/devlink.c: remove new uninitialized_var() usage
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c5efcf17bf
commit
29cb9868fb
@@ -583,7 +583,7 @@ devlink_nl_port_function_attrs_put(struct sk_buff *msg, struct devlink_port *por
|
||||
|
||||
ops = devlink->ops;
|
||||
if (ops->port_function_hw_addr_get) {
|
||||
int uninitialized_var(hw_addr_len);
|
||||
int hw_addr_len;
|
||||
u8 hw_addr[MAX_ADDR_LEN];
|
||||
|
||||
err = ops->port_function_hw_addr_get(devlink, port, hw_addr, &hw_addr_len, extack);
|
||||
|
||||
Reference in New Issue
Block a user