Commit f3846266f593595632a07242fcbc6c24bc2ade68
Committed by
Miklos Szeredi
1 parent
4d99ff8f12
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: Rajat Jain <rajatxjain@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/fuse/file.c
... | ... | @@ -2772,7 +2772,7 @@ |
2772 | 2772 | { |
2773 | 2773 | spin_lock(&fc->lock); |
2774 | 2774 | if (RB_EMPTY_NODE(&ff->polled_node)) { |
2775 | - struct rb_node **link, *parent; | |
2775 | + struct rb_node **link, *uninitialized_var(parent); | |
2776 | 2776 | |
2777 | 2777 | link = fuse_find_polled_node(fc, ff->kh, &parent); |
2778 | 2778 | BUG_ON(*link); |