[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250913121514.1789204-1-thorsten.blum@linux.dev>
Date: Sat, 13 Sep 2025 14:15:14 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
Jan Kara <jack@...e.cz>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] initrd: Remove unnecessary goto label 'successful_load'
The goto label 'successful_load' isn't really necessary. Set 'res = 1'
immediately and let 'goto done' handle the rest.
No functional changes.
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
init/do_mounts_rd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c
index ac021ae6e6fa..97ddcdaba893 100644
--- a/init/do_mounts_rd.c
+++ b/init/do_mounts_rd.c
@@ -210,7 +210,7 @@ int __init rd_load_image(char *from)
if (nblocks == 0) {
if (crd_load(decompressor) == 0)
- goto successful_load;
+ res = 1; /* load successful */
goto done;
}
@@ -264,8 +264,6 @@ int __init rd_load_image(char *from)
}
pr_cont("done.\n");
-successful_load:
- res = 1;
done:
fput(in_file);
noclose_input:
--
2.51.0
Powered by blists - more mailing lists