fs_context: Remove unnecessary ‘0’ values from ret

Message ID 20240220054735.65310-1-zeming@nfschina.com
State New
Headers
Series fs_context: Remove unnecessary ‘0’ values from ret |

Commit Message

Li zeming Feb. 20, 2024, 5:47 a.m. UTC
  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@nfschina.com>
---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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;