projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5efcf1
)
net/core/devlink.c: remove new uninitialized_var() usage
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Tue, 23 Jun 2020 03:43:06 +0000
(13:43 +1000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Jun 2020 03:56:30 +0000
(20:56 -0700)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c
patch
|
blob
|
history
diff --git
a/net/core/devlink.c
b/net/core/devlink.c
index 455998a576717d222bad1ca579af7de1d23915d2..6ae36808c152133eddf69d73ed46fb1097c02470 100644
(file)
--- 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);