[PATCH] - fix compile warning: `found' might be used uninitialized in this function

From: roland
Date: Wed Mar 21 2007 - 19:45:59 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/