diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-09-01 07:42:59 +0000 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2022-11-23 09:10:49 +0100 |
commit | e2283a736676554f72dbdcb62fdc1d23daf7044f (patch) | |
tree | 7860b26d5564feb7e466cd314b20924b1a9f365a | |
parent | 00d369bc2de5986504fc0d60bfeae4c342b2cad5 (diff) | |
download | linux-stable-e2283a736676554f72dbdcb62fdc1d23daf7044f.tar.gz linux-stable-e2283a736676554f72dbdcb62fdc1d23daf7044f.tar.bz2 linux-stable-e2283a736676554f72dbdcb62fdc1d23daf7044f.zip |
fuse: remove the unneeded result variable
Return the value fuse_dev_release() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/fuse/cuse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c index c7d882a9fe33..a06fbb1a8a5b 100644 --- a/fs/fuse/cuse.c +++ b/fs/fuse/cuse.c @@ -545,7 +545,6 @@ static int cuse_channel_release(struct inode *inode, struct file *file) { struct fuse_dev *fud = file->private_data; struct cuse_conn *cc = fc_to_cc(fud->fc); - int rc; /* remove from the conntbl, no more access from this point on */ mutex_lock(&cuse_lock); @@ -560,9 +559,7 @@ static int cuse_channel_release(struct inode *inode, struct file *file) cdev_del(cc->cdev); } - rc = fuse_dev_release(inode, file); /* puts the base reference */ - - return rc; + return fuse_dev_release(inode, file); } static struct file_operations cuse_channel_fops; /* initialized during init */ |