public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - fix compile warning: `found' might be used uninitialized in this function
@ 2007-03-21 23:48 roland
  2007-03-21 23:56 ` Johannes Weiner
  0 siblings, 1 reply; 5+ messages in thread
From: roland @ 2007-03-21 23:48 UTC (permalink / raw)
  To: linux-kernel

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; 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-22 17:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 23:48 [PATCH] - fix compile warning: `found' might be used uninitialized in this function roland
2007-03-21 23:56 ` Johannes Weiner
2007-03-22  8:45   ` Andrew Morton
2007-03-22 16:26     ` Johannes Weiner
2007-03-22 17:16       ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox