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>
This commit is contained in:
Namjae Jeon 2023-05-30 21:43:17 +09:00 committed by Steve French
parent f87d4f85f4
commit cf5e7f734f

View File

@ -1207,7 +1207,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
if (!err)
return err;
return 0;
if (caseless) {
char *filepath;