mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: minyard@acm.org
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	OpenIPMI Developers <openipmi-developer@lists.sourceforge.net>,
	Corey Minyard <cminyard@mvista.com>
Subject: [PATCH 2/4] ipmi: Initialize locals to avoid warning
Date: Thu, 05 Sep 2013 06:36:34 -0500	[thread overview]
Message-ID: <1378380996-4844-3-git-send-email-minyard@acm.org> (raw)
In-Reply-To: <1378380996-4844-1-git-send-email-minyard@acm.org>

From: Corey Minyard <cminyard@mvista.com>

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>
---
 drivers/char/ipmi/ipmi_msghandler.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index 4445fa1..ec4e10f 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)
-- 
1.7.9.5


  parent reply	other threads:[~2013-09-05 11:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 11:36 [PATCH 0/4] Some minor IPMI fixes (with signoffs) minyard
2013-09-05 11:36 ` [PATCH 1/4] ipmi: info leak in compat_ipmi_ioctl() minyard
2013-09-05 11:36 ` minyard [this message]
2013-09-05 11:36 ` [PATCH 3/4] Add MODULE_ALIAS for autoloading ipmi driver on ACPI systems minyard
2013-09-05 11:36 ` [PATCH 4/4] BMC support for PARISC machines minyard
  -- strict thread matches above, loose matches on Subject: below --
2013-09-04 14:40 [PATCH 0/4] Some minor IPMI fixes minyard
2013-09-04 14:40 ` [PATCH 2/4] ipmi: Initialize locals to avoid warning minyard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378380996-4844-3-git-send-email-minyard@acm.org \
    --to=minyard@acm.org \
    --cc=cminyard@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openipmi-developer@lists.sourceforge.net \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®