diff options
author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | 2021-02-26 09:22:58 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-04-02 15:57:00 -0400 |
commit | e4979da45d32fe8f641d66c5f8da9df8caa46ff4 (patch) | |
tree | 21ca5b423ff5ec71b679c7e385e49255bbae5606 | |
parent | d1d44c146a5e37e642c49ad86b614fcacbcd9f67 (diff) | |
download | e2fsprogs-e4979da45d32fe8f641d66c5f8da9df8caa46ff4.tar.gz |
misc: remove useless code in set_inode_xattr()
In set_inode_xattr(), there are two returns as follows,
-
return retval;
return 0;
-
Here, we remove useless 'return 0;' code.
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | misc/create_inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/misc/create_inode.c b/misc/create_inode.c index 54d8d3433..d62e1cb4f 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -234,7 +234,6 @@ static errcode_t set_inode_xattr(ext2_filsys fs, ext2_ino_t ino, retval = retval ? retval : close_retval; } return retval; - return 0; } #else /* HAVE_LLISTXATTR */ static errcode_t set_inode_xattr(ext2_filsys fs EXT2FS_ATTR((unused)), |