summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-20 23:00:57 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2020-05-11 20:37:13 -0700
commitdeaf160f8aa767f1b2cd53f1834c1a4126815631 (patch)
tree74399731b01d22aa086ebe7efed4b48ab95960bf /fs/f2fs
parentb4b10061ef98c583bcf82a4200703fbaa98c18dc (diff)
f2fs: remove redundant assignment to variable err
The variable err is being assigned 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> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 58db1de7ca94..63b34a161cf4 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -564,7 +564,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
struct inode *inode = d_inode(dentry);
struct f2fs_dir_entry *de;
struct page *page;
- int err = -ENOENT;
+ int err;
trace_f2fs_unlink_enter(dir, dentry);