diff --git a/plugins/ofono/calls-ofono-origin.c b/plugins/ofono/calls-ofono-origin.c index 605e250..b995ec5 100644 --- a/plugins/ofono/calls-ofono-origin.c +++ b/plugins/ofono/calls-ofono-origin.c @@ -117,9 +117,7 @@ calls_ofono_origin_matches (CallsOfonoOrigin *self, { g_return_val_if_fail (CALLS_IS_OFONO_ORIGIN (self), FALSE); g_return_val_if_fail (path, FALSE); - - if (!self->modem) - return FALSE; + g_return_val_if_fail (self->modem, FALSE); return g_strcmp0 (g_dbus_proxy_get_object_path (G_DBUS_PROXY (self->modem)), path) == 0; } @@ -504,8 +502,6 @@ constructed (GObject *object) (GAsyncReadyCallback)voice_new_cb, self); - g_clear_object (&self->modem); - G_OBJECT_CLASS (calls_ofono_origin_parent_class)->constructed (object); }