From: Luis Henriques Date: Fri, 14 Aug 2020 09:38:22 +0000 (+0100) Subject: ceph: remove unnecessary return in switch statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1c30c90733879ea197dd29af54450a0f6cdcacb1;p=linux.git ceph: remove unnecessary return in switch statement Since there's a return immediately after the 'break', there's no need for this extra 'return' in the S_IFDIR case. Signed-off-by: Luis Henriques Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 3f4c993dfc6fe..fb3ea715a19d7 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -256,8 +256,6 @@ static int ceph_init_file(struct inode *inode, struct file *file, int fmode) case S_IFDIR: ret = ceph_init_file_info(inode, file, fmode, S_ISDIR(inode->i_mode)); - if (ret) - return ret; break; case S_IFLNK: