ipmi: Initialize locals to avoid warning
authorCorey Minyard <cminyard@mvista.com>
Thu, 5 Sep 2013 11:36:34 +0000 (06:36 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Sep 2013 15:34:31 +0000 (08:34 -0700)
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>
drivers/char/ipmi/ipmi_msghandler.c

index 4445fa1..ec4e10f 100644 (file)
@@ -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)