Skip to content

Commit

Permalink
ipmi: Initialize locals to avoid warning
Browse files Browse the repository at this point in the history
A couple of variables were getting warnings about being uninitialized.
It was a false warning, but initialize them, anyway.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Corey Minyard authored and Linus Torvalds committed Sep 5, 2013
1 parent fa7df37 commit f0ba939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ int ipmi_request_settime(ipmi_user_t user,
int retries,
unsigned int retry_time_ms)
{
unsigned char saddr, lun;
unsigned char saddr = 0, lun = 0;
int rv;

if (!user)
Expand Down

0 comments on commit f0ba939

Please sign in to comment.