From: Corey Minyard Date: Thu, 5 Sep 2013 11:36:34 +0000 (-0500) Subject: ipmi: Initialize locals to avoid warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f0ba93907b5a7c3c87b6baae1260a254ecfd6f98;p=openwrt%2Fstaging%2Fblogic.git ipmi: Initialize locals to avoid warning A couple of variables were getting warnings about being uninitialized. It was a false warning, but initialize them, anyway. Signed-off-by: Corey Minyard Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 4445fa164a2d..ec4e10fcf1a5 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -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)