diff options
Diffstat (limited to 'cli/mmcli-modem-simple.c')
-rw-r--r-- | cli/mmcli-modem-simple.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c index 29df8a34..53277038 100644 --- a/cli/mmcli-modem-simple.c +++ b/cli/mmcli-modem-simple.c @@ -125,11 +125,12 @@ context_free (Context *ctx) static void ensure_modem_simple (void) { - if (ctx->modem_simple) - return; + if (!ctx->modem_simple) { + g_printerr ("error: modem has no Simple capabilities\n"); + exit (EXIT_FAILURE); + } - g_printerr ("error: modem has no Simple capabilities\n"); - exit (EXIT_FAILURE); + /* Success */ } void |