summaryrefslogtreecommitdiffstats
path: root/src/hci/commands/config_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci/commands/config_cmd.c')
-rw-r--r--src/hci/commands/config_cmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c
index 49cc41e75..5a34cea27 100644
--- a/src/hci/commands/config_cmd.c
+++ b/src/hci/commands/config_cmd.c
@@ -5,7 +5,7 @@
#include <gpxe/settings_ui.h>
static int config_exec ( int argc, char **argv ) {
- struct settings *settings;
+ struct settings *settings = NULL;
int rc;
if ( argc > 2 ) {
@@ -20,8 +20,6 @@ static int config_exec ( int argc, char **argv ) {
printf ( "No such scope \"%s\"\n", argv[1] );
return 1;
}
- } else {
- settings = &interactive_settings;
}
if ( ( rc = settings_ui ( settings ) ) != 0 ) {