__ofono_ussd_ssc_register(cs->ussd, "43", cw_ss_control, cs, NULL);
- if (cs->driver->colr_query)
+ if (cs->driver->colr_query != NULL)
__ofono_ussd_ssc_register(cs->ussd, "77",
clip_cnap_colp_colr_ss, cs, NULL);
}
__ofono_ussd_ssc_unregister(cs->ussd, "43");
- if (cs->driver->colr_query)
+ if (cs->driver->colr_query != NULL)
__ofono_ussd_ssc_unregister(cs->ussd, "77");
}
if (cs == NULL)
return;
- if (cs->driver && cs->driver->remove)
+ if (cs->driver != NULL && cs->driver->remove != NULL)
cs->driver->remove(cs);
g_free(cs);