cli,firmware: no need to be enabled to run actions

This commit is contained in:
Aleksander Morgado
2012-10-04 17:22:59 +02:00
parent 0d00ee28be
commit 15a99ebe55

View File

@@ -115,11 +115,6 @@ context_free (Context *ctx)
static void
ensure_modem_firmware (void)
{
if (mm_modem_get_state (mm_object_peek_modem (ctx->object)) < MM_MODEM_STATE_ENABLED) {
g_printerr ("error: modem not enabled yet\n");
exit (EXIT_FAILURE);
}
if (!ctx->modem_firmware) {
g_printerr ("error: modem has no firmware capabilities\n");
exit (EXIT_FAILURE);