diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-04-28 16:20:42 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-05-17 13:44:11 +0300 |
commit | 89cd67f0760bb44aed2ccadaf829ab5b6db63d29 (patch) | |
tree | 65dad023e2cfd649a7970ecf6adc691bcad50b81 | |
parent | 5b288c17b9b89603362be3fd457e827815f87771 (diff) | |
download | ofono-89cd67f0760bb44aed2ccadaf829ab5b6db63d29.tar.bz2 |
Use g_pn_netlink_by_modem() in usbpnmodem plugin
-rw-r--r-- | plugins/usbpnmodem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/usbpnmodem.c b/plugins/usbpnmodem.c index 5f06e9d5..2ed1e2c4 100644 --- a/plugins/usbpnmodem.c +++ b/plugins/usbpnmodem.c @@ -63,8 +63,7 @@ static void usbpn_status_cb(GIsiModem *idx, if (st == PN_LINK_REMOVED) return; - link = g_pn_netlink_by_name(ifname); - if (link) { + if (g_pn_netlink_by_modem(idx)) { DBG("Modem for interface %s already exists", ifname); return; } |