Skip to contentSkip to conversation

fs_context: Remove unnecessary ‘0’ values from ret

PATCH New Li zeming 1 participant 1 message Feb 20, 2024 VFS

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 fs_context: Remove unnecessary ‘0’ values from ret

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

---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fs_context.c +1 -1
index 98589aae52085..3ff30227a061a 100644
@@ -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;
Signature · 1 line
2.18.2