Skip to content

Commit

Permalink
net/core/devlink.c: remove new uninitialized_var() usage
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Jun 23, 2020
1 parent c5efcf1 commit 29cb986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/devlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29cb986

Please sign in to comment.