mirror of git://git.sysmocom.de/ofono
gisi: Refactor netlink destroy function
This commit is contained in:
parent
50f6b06105
commit
f2bcea8c4e
|
@ -336,11 +336,12 @@ error:
|
||||||
|
|
||||||
void g_isi_pn_netlink_stop(GIsiPhonetNetlink *self)
|
void g_isi_pn_netlink_stop(GIsiPhonetNetlink *self)
|
||||||
{
|
{
|
||||||
if (self) {
|
if (!self)
|
||||||
netlink_list = g_slist_remove(netlink_list, self);
|
return;
|
||||||
g_source_remove(self->watch);
|
|
||||||
g_free(self);
|
netlink_list = g_slist_remove(netlink_list, self);
|
||||||
}
|
g_source_remove(self->watch);
|
||||||
|
g_free(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pn_netlink_getack(int fd)
|
static int pn_netlink_getack(int fd)
|
||||||
|
|
Loading…
Reference in New Issue