2024-02-20 05:48:07

by Li zeming

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Li zeming <[email protected]>
---
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