linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] misc: remove useless code in set_inode_xattr()
@ 2021-02-26  1:22 Zhiqiang Liu
  2021-03-03  0:51 ` Zhiqiang Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Zhiqiang Liu @ 2021-02-26  1:22 UTC (permalink / raw)
  To: linux-ext4, Theodore Y. Ts'o
  Cc: harshad shirwadkar, linfeilong, lihaotian, liuzhiqiang26


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>
---
 misc/create_inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/misc/create_inode.c b/misc/create_inode.c
index 54d8d343..d62e1cb4 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)),
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-02 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-26  1:22 [PATCH] misc: remove useless code in set_inode_xattr() Zhiqiang Liu
2021-03-03  0:51 ` Zhiqiang Liu
2021-03-03 20:20   ` Andreas Dilger
2021-04-02 19:57     ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).