Commit f3846266 authored by Rajat Jain's avatar Rajat Jain Committed by Miklos Szeredi

fuse: fix "uninitialized variable" warning

Fix the following warning:

In file included from include/linux/fs.h:16:0,
                 from fs/fuse/fuse_i.h:13,
                 from fs/fuse/file.c:9:
fs/fuse/file.c: In function 'fuse_file_poll':
include/linux/rbtree.h:82:28: warning: 'parent' may be used
uninitialized in this function [-Wmaybe-uninitialized]
fs/fuse/file.c:2592:27: note: 'parent' was declared here
Signed-off-by: default avatarRajat Jain <rajatxjain@gmail.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 4d99ff8f
...@@ -2772,7 +2772,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc, ...@@ -2772,7 +2772,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc,
{ {
spin_lock(&fc->lock); spin_lock(&fc->lock);
if (RB_EMPTY_NODE(&ff->polled_node)) { if (RB_EMPTY_NODE(&ff->polled_node)) {
struct rb_node **link, *parent; struct rb_node **link, *uninitialized_var(parent);
link = fuse_find_polled_node(fc, ff->kh, &parent); link = fuse_find_polled_node(fc, ff->kh, &parent);
BUG_ON(*link); BUG_ON(*link);
......
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