[PATCH] debugfs: fix bool built-in type.

From: Greg KH
Date: Wed Mar 09 2005 - 20:11:51 EST


ChangeSet 1.2034, 2005/03/09 15:24:27-08:00, gregkh@xxxxxxx

[PATCH] debugfs: fix bool built-in type.

Thanks to Alessandro Rubini <rubini@xxxxxxxxx> for pointing this out.

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>


fs/debugfs/file.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/fs/debugfs/file.c b/fs/debugfs/file.c
--- a/fs/debugfs/file.c 2005-03-09 16:23:02 -08:00
+++ b/fs/debugfs/file.c 2005-03-09 16:23:02 -08:00
@@ -186,7 +186,7 @@
char buf[3];
u32 *val = file->private_data;

- if (val)
+ if (*val)
buf[0] = 'Y';
else
buf[0] = 'N';

-
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/