Skip to content

Commit cf5e7f7

Browse files
namjaejeonsmfrench
authored andcommitted
ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
Return a literal instead of 'err' in ksmbd_vfs_kern_path_locked(). Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent f87d4f8 commit cf5e7f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/server/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
12071207

12081208
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
12091209
if (!err)
1210-
return err;
1210+
return 0;
12111211

12121212
if (caseless) {
12131213
char *filepath;

0 commit comments

Comments
 (0)