Commit 1fc57ca5 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Theodore Ts'o

ext4: remove redundant assignment to error

Variable error is set to zero but this value is never read as it's not
used later on, hence it is a redundant assignment and can be removed.

Cleans up the following clang-analyzer warning:

fs/ext4/ioctl.c:657:3: warning: Value stored to 'error' is never read
[clang-analyzer-deadcode.DeadStores].
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1619691409-83160-1-git-send-email-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 5c680150
...@@ -659,10 +659,9 @@ static int ext4_ioc_getfsmap(struct super_block *sb, ...@@ -659,10 +659,9 @@ static int ext4_ioc_getfsmap(struct super_block *sb,
info.gi_sb = sb; info.gi_sb = sb;
info.gi_data = arg; info.gi_data = arg;
error = ext4_getfsmap(sb, &xhead, ext4_getfsmap_format, &info); error = ext4_getfsmap(sb, &xhead, ext4_getfsmap_format, &info);
if (error == EXT4_QUERY_RANGE_ABORT) { if (error == EXT4_QUERY_RANGE_ABORT)
error = 0;
aborted = true; aborted = true;
} else if (error) else if (error)
return error; return error;
/* If we didn't abort, set the "last" flag in the last fmx */ /* If we didn't abort, set the "last" flag in the last fmx */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment