lkml.org 
[lkml]   [2007]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] - fix compile warning: `found' might be used uninitialized in this function
Date
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-22 00:49    [W:2.131 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site