Messages in this thread Patch in this message | | | From | Colin King <> | Subject | [PATCH] afs: remove redundant assignment to variable ret | Date | Wed, 27 May 2020 13:06:13 +0100 |
| |
From: Colin Ian King <colin.king@canonical.com>
The variable ret is being assigned a value that is never read. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> --- fs/afs/dir.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index d1e1caa23c8b..5608665ccb71 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -579,7 +579,6 @@ static int afs_do_lookup_one(struct inode *dir, struct dentry *dentry, return ret; } - ret = -ENOENT; if (!cookie.found) { _leave(" = -ENOENT [not found]"); return -ENOENT; -- 2.25.1
| |