cifsd: remove redundant assignment to variable err
The variable err is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Родитель
849f59e1a1
Коммит
3161ad3a71
|
@ -587,7 +587,7 @@ int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name)
|
||||||
struct path parent;
|
struct path parent;
|
||||||
struct dentry *dir, *dentry;
|
struct dentry *dir, *dentry;
|
||||||
char *last;
|
char *last;
|
||||||
int err = -ENOENT;
|
int err;
|
||||||
|
|
||||||
last = extract_last_component(name);
|
last = extract_last_component(name);
|
||||||
if (!last)
|
if (!last)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче