mirror of git://git.sysmocom.de/ofono
gisi: fix g_pn_netlink_start() return value
This commit is contained in:
parent
8199937bb5
commit
127b56bacc
|
@ -181,7 +181,7 @@ GPhonetNetlink *g_pn_netlink_start(GPhonetNetlinkFunc cb, void *opaque)
|
|||
self->watch = g_io_add_watch(chan, G_IO_IN|G_IO_ERR|G_IO_HUP,
|
||||
g_pn_nl_process, self);
|
||||
g_io_channel_unref(chan);
|
||||
return 0;
|
||||
return self;
|
||||
|
||||
error:
|
||||
if (fd != -1)
|
||||
|
|
Loading…
Reference in New Issue