diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-21 00:00:57 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-05-12 05:37:13 +0200 |
commit | deaf160f8aa767f1b2cd53f1834c1a4126815631 (patch) | |
tree | 74399731b01d22aa086ebe7efed4b48ab95960bf | |
parent | f2fs: refactor resize_fs to avoid meta updates in progress (diff) | |
download | linux-deaf160f8aa767f1b2cd53f1834c1a4126815631.tar.xz linux-deaf160f8aa767f1b2cd53f1834c1a4126815631.zip |
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>
-rw-r--r-- | fs/f2fs/namei.c | 2 |
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); |