* [PATCH] fs_context: Remove unnecessary ‘0’ values from ret
@ 2024-02-20 5:47 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2024-02-20 5:47 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel, linux-kernel, Li zeming
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(-)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-20 5:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 5:47 [PATCH] fs_context: Remove unnecessary ‘0’ values from ret Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®