Commit ab4da725 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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

Thanks to Alessandro Rubini <rubini@gnudd.com> for pointing this out.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c29047a1
......@@ -186,7 +186,7 @@ static ssize_t read_file_bool(struct file *file, char __user *user_buf,
char buf[3];
u32 *val = file->private_data;
if (val)
if (*val)
buf[0] = 'Y';
else
buf[0] = 'N';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment