From: Colin Ian King Date: Thu, 25 Mar 2021 17:35:38 +0000 (+0000) Subject: cifsd: remove redundant assignment to variable err X-Git-Tag: accepted/tizen/unified/20230118.172025~6553^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3161ad3a717e69b26ea3d73467ed8399023b5075;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/vfs.c b/fs/cifsd/vfs.c index 00f80ca..3d7413b 100644 --- a/fs/cifsd/vfs.c +++ b/fs/cifsd/vfs.c @@ -587,7 +587,7 @@ int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name) struct path parent; struct dentry *dir, *dentry; char *last; - int err = -ENOENT; + int err; last = extract_last_component(name); if (!last)