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:
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;
|
ops = devlink->ops;
|
||||||
if (ops->port_function_hw_addr_get) {
|
if (ops->port_function_hw_addr_get) {
|
||||||
int uninitialized_var(hw_addr_len);
|
int hw_addr_len;
|
||||||
u8 hw_addr[MAX_ADDR_LEN];
|
u8 hw_addr[MAX_ADDR_LEN];
|
||||||
|
|
||||||
err = ops->port_function_hw_addr_get(devlink, port, hw_addr, &hw_addr_len, extack);
|
err = ops->port_function_hw_addr_get(devlink, port, hw_addr, &hw_addr_len, extack);
|
||||||
|
|
Loading…
Reference in New Issue