[PATCH] fs_context: Remove unnecessary ‘0’ values from ret

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ret variable is assigned when it does not need to be defined, as it
has already been assigned before use.

Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs_context.c b/fs/fs_context.c
index 98589aae52085..3ff30227a061a 100644
--- a/fs/fs_context.c
+++ b/fs/fs_context.c
@@ -207,7 +207,7 @@ int vfs_parse_monolithic_sep(struct fs_context *fc, void *data,
 			     char *(*sep)(char **))
 {
 	char *options = data, *key;
-	int ret = 0;
+	int ret;
 
 	if (!options)
 		return 0;
-- 
2.18.2





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux