summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index b7b2e05af..ef173f992 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -666,8 +666,7 @@ static char * interface_select(void)
return *interfaces;
/* this can't be done in ask_from_list_comments_auto because "auto" isn't in the interfaces list */
- choice = get_auto_value("interface");
- if (choice && streq(choice, "auto")) {
+ if (streq(get_auto_value("interface"), "auto")) {
choice = auto_select_up_intf();
if (choice)
return choice;