]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kconfig: gconf: remove unneeded variable in text_insert_msg
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 16 Jul 2025 23:24:12 +0000 (08:24 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 26 Jul 2025 10:55:37 +0000 (19:55 +0900)
The 'msg' and 'message' refer to the same pointer.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/gconf.c

index e4f89270d19f9fb0b05640f72a0d260c706eaef9..651140af7d1371ed8a9af325fde5c9a5daa20450 100644 (file)
@@ -90,11 +90,10 @@ static void text_insert_help(struct menu *menu)
 }
 
 
-static void text_insert_msg(const char *title, const char *message)
+static void text_insert_msg(const char *title, const char *msg)
 {
        GtkTextBuffer *buffer;
        GtkTextIter start, end;
-       const char *msg = message;
 
        buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w));
        gtk_text_buffer_get_bounds(buffer, &start, &end);