IPMI: Fix some uninitialized warning
authorCorey Minyard <cminyard@mvista.com>
Tue, 16 Oct 2012 20:53:39 +0000 (15:53 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <cminyard@mvista.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_msghandler.c

index 2c29942..a0c84bb 100644 (file)
@@ -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)