atmodem: Remove ussd atom in case we fail to init
authorDenis Kenzior <denkenz@gmail.com>
Mon, 16 Apr 2012 18:11:37 +0000 (13:11 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 16 Apr 2012 18:15:52 +0000 (13:15 -0500)
drivers/atmodem/ussd.c

index 443251a..2e45317 100644 (file)
@@ -286,6 +286,7 @@ static void at_ussd_register(gboolean ok, GAtResult *result, gpointer user)
 
        if (!ok) {
                ofono_error("Could not enable CUSD notifications");
+               ofono_ussd_remove(ussd);
                return;
        }