Re: 2.6.16-rc6-mm1

From: Benoit Boissinot
Date: Sun Mar 12 2006 - 10:45:36 EST


On Sun, Mar 12, 2006 at 03:10:36AM -0800, Andrew Morton wrote:
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc6/2.6.16-rc6-mm1/
>
>

fs/reiserfs/item_ops.c: In function 'indirect_print_item':
fs/reiserfs/item_ops.c:278: warning: 'num' may be used uninitialized in this function

num isn't used during the first iteration of the loop, but it does not harm to initialize
it anyway.

Signed-off-by: Benoit Boissinot <benoit.boissinot@xxxxxxxxxxx>

Index: linux/fs/reiserfs/item_ops.c
===================================================================
--- linux.orig/fs/reiserfs/item_ops.c
+++ linux/fs/reiserfs/item_ops.c
@@ -275,7 +275,7 @@ static void indirect_print_item(struct i
int j;
__le32 *unp;
__u32 prev = INT_MAX;
- int num;
+ int num = 0;

unp = (__le32 *) item;



--
powered by bash/screen/(urxvt/fvwm|linux-console)/gentoo/gnu/linux OS
-
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/