mirror of git://git.sysmocom.de/ofono
audio-settings: Remove unwanted check
This commit is contained in:
parent
bbe283cebc
commit
2151ac0d5c
|
@ -132,7 +132,7 @@ int ofono_audio_settings_driver_register(const struct ofono_audio_settings_drive
|
|||
{
|
||||
DBG("driver: %p, name: %s", d, d->name);
|
||||
|
||||
if (!d || !d->probe)
|
||||
if (!d->probe)
|
||||
return -EINVAL;
|
||||
|
||||
g_drivers = g_slist_prepend(g_drivers, (void *) d);
|
||||
|
@ -144,9 +144,6 @@ void ofono_audio_settings_driver_unregister(const struct ofono_audio_settings_dr
|
|||
{
|
||||
DBG("driver: %p, name: %s", d, d->name);
|
||||
|
||||
if (!d)
|
||||
return;
|
||||
|
||||
g_drivers = g_slist_remove(g_drivers, (void *) d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue