public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "roland" <devzero@web.de>
To: <linux-kernel@vger.kernel.org>
Subject: [PATCH] - fix compile warning: `found' might be used uninitialized in this function
Date: Thu, 22 Mar 2007 00:48:05 +0100	[thread overview]
Message-ID: <04bf01c76c13$5f25ce00$eeeea8c0@aldipc> (raw)

Hello !

the attached patch should fix the following compile warning:

fs/block_dev.c: In function `bd_claim_by_kobject':
fs/block_dev.c:953: warning: `found' might be used uninitialized in this 
function

i`m an absolutely awful programmer , but feel free to comment, ignore or 
.... merge.

regards
Roland Kletzing


--- linux-2.6.20.3/fs/block_dev.c.orig  2007-03-22 00:07:49.270353920 +0100
+++ linux-2.6.20.3/fs/block_dev.c       2007-03-22 00:07:33.875694264 +0100
@@ -950,7 +950,7 @@
                                struct kobject *kobj)
 {
        int res;
-       struct bd_holder *bo, *found;
+       struct bd_holder *bo, *found = NULL;

        if (!kobj)
                return -EINVAL; 


             reply	other threads:[~2007-03-21 23:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21 23:48 roland [this message]
2007-03-21 23:56 ` [PATCH] - fix compile warning: `found' might be used uninitialized in this function Johannes Weiner
2007-03-22  8:45   ` Andrew Morton
2007-03-22 16:26     ` Johannes Weiner
2007-03-22 17:16       ` Johannes Weiner

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='04bf01c76c13$5f25ce00$eeeea8c0@aldipc' \
    --to=devzero@web.de \
    --cc=linux-kernel@vger.kernel.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