Browse Source

IPMI: Fix some uninitialized warning

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>
Corey Minyard 12 years ago
parent
commit
9ebca93bf3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/char/ipmi/ipmi_msghandler.c

+ 1 - 1
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)