projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
061475b
)
IPMI: Fix some uninitialized warning
author
Corey Minyard
<
[email protected]
>
Tue, 16 Oct 2012 20:53:39 +0000
(15:53 -0500)
committer
Linus Torvalds
<
[email protected]
>
Wed, 17 Oct 2012 01:07:12 +0000
(18:07 -0700)
There was a spot where the compiler couldn't tell some variables
would be set. So initialize them to make the warning go away.
Signed-off-by: Corey Minyard <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/ipmi/ipmi_msghandler.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_msghandler.c
b/drivers/char/ipmi/ipmi_msghandler.c
index 2c29942b132654747af55e6b70ea4857dc9e0de4..a0c84bb30856073aa7a46c52690f163789bbd9bc 100644
(file)
--- a/
drivers/char/ipmi/ipmi_msghandler.c
+++ b/
drivers/char/ipmi/ipmi_msghandler.c
@@
-1880,7
+1880,7
@@
int ipmi_request_supply_msgs(ipmi_user_t user,
struct ipmi_recv_msg *supplied_recv,
int priority)
{
- unsigned char saddr
, lun
;
+ unsigned char saddr
= 0, lun = 0
;
int rv;
if (!user)