kconfig: remove the rootmenu check in menu_add_prop()
[carl9170fw.git] / config / menu.c
index 7e2b2c938d7ba053b1ed2583b45596e081d39ecb..b1b1ee8cf98704253402b5b89f12abde87612b83 100644 (file)
@@ -1,6 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
- * Released under the terms of the GNU GPL v2.0.
  */
 
 #include <ctype.h>
@@ -138,7 +138,7 @@ static struct property *menu_add_prop(enum prop_type type, char *prompt, struct
                        while (isspace(*prompt))
                                prompt++;
                }
-               if (current_entry->prompt && current_entry != &rootmenu)
+               if (current_entry->prompt)
                        prop_warn(prop, "prompt redefined");
 
                /* Apply all upper menus' visibilities to actual prompts. */