Skip to content

Commit e2283a7

Browse files
ye xingchenMiklos Szeredi
authored andcommitted
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 <[email protected]> Signed-off-by: ye xingchen <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 00d369b commit e2283a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/fuse/cuse.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ static int cuse_channel_release(struct inode *inode, struct file *file)
545545
{
546546
struct fuse_dev *fud = file->private_data;
547547
struct cuse_conn *cc = fc_to_cc(fud->fc);
548-
int rc;
549548

550549
/* remove from the conntbl, no more access from this point on */
551550
mutex_lock(&cuse_lock);
@@ -560,9 +559,7 @@ static int cuse_channel_release(struct inode *inode, struct file *file)
560559
cdev_del(cc->cdev);
561560
}
562561

563-
rc = fuse_dev_release(inode, file); /* puts the base reference */
564-
565-
return rc;
562+
return fuse_dev_release(inode, file);
566563
}
567564

568565
static struct file_operations cuse_channel_fops; /* initialized during init */

0 commit comments

Comments
 (0)