summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajat Jain <rajatxjain@gmail.com>2014-02-05 15:24:57 -0800
committerMiklos Szeredi <mszeredi@suse.cz>2014-04-02 15:38:51 +0200
commitf3846266f593595632a07242fcbc6c24bc2ade68 (patch)
treeea0b77f91bf16239aec4108722dae1fecc059b17
parent4d99ff8f12eb20c6cde292f185cb1c8c334ba0ed (diff)
downloadop-kernel-dev-f3846266f593595632a07242fcbc6c24bc2ade68.zip
op-kernel-dev-f3846266f593595632a07242fcbc6c24bc2ade68.tar.gz
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>
-rw-r--r--fs/fuse/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index d03a35d..65df7d8 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -2772,7 +2772,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc,
{
spin_lock(&fc->lock);
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);
BUG_ON(*link);
OpenPOWER on IntegriCloud