diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-06-23 13:43:06 +1000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-22 20:56:30 -0700 |
commit | 29cb9868fb69582da3205cf4a5eb5dc8f740ed33 (patch) | |
tree | 885717175256d1bab5fb00bb6586fc381aca6325 /net | |
parent | c5efcf17bf84b20dd76ca56de6dd99a40a89c4e3 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/devlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 455998a57671..6ae36808c152 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -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); |