There is one user of the err_unlock goto. Get rid of it and make the code simpler. Signed-off-by: Joanne Koong --- fs/fuse/dev.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index e57ede7351b9..8a0a541f3fba 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -1438,8 +1438,8 @@ static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file, } if (!fiq->connected) { - err = fc->aborted ? -ECONNABORTED : -ENODEV; - goto err_unlock; + spin_unlock(&fiq->lock); + return fc->aborted ? -ECONNABORTED : -ENODEV; } if (!list_empty(&fiq->interrupts)) { @@ -1524,10 +1524,6 @@ static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file, spin_unlock(&fpq->lock); fuse_request_end(req); return err; - - err_unlock: - spin_unlock(&fiq->lock); - return err; } static int fuse_dev_open(struct inode *inode, struct file *file) -- 2.47.3