summaryrefslogtreecommitdiffstats
path: root/src/gprs.c
diff options
context:
space:
mode:
authorMika Liljeberg <mika.liljeberg@nokia.com>2011-03-29 10:48:29 +0300
committerDenis Kenzior <denkenz@gmail.com>2011-03-30 12:33:54 -0500
commit0eedf429218761109009370b2434c3e7b3350a67 (patch)
treeb23c444264e21b8e971694f04aa0a595c7addd37 /src/gprs.c
parent3c191345241d462ce966c727c96d4a2cc0646c7a (diff)
downloadofono-0eedf429218761109009370b2434c3e7b3350a67.tar.bz2
core: remove redundant code
Diffstat (limited to 'src/gprs.c')
-rw-r--r--src/gprs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gprs.c b/src/gprs.c
index f9e327a9..deffeb8b 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2869,7 +2869,6 @@ static void ofono_gprs_finish_register(struct ofono_gprs *gprs)
DBusConnection *conn = ofono_dbus_get_connection();
struct ofono_modem *modem = __ofono_atom_get_modem(gprs->atom);
const char *path = __ofono_atom_get_path(gprs->atom);
- struct ofono_atom *netreg_atom;
if (gprs->contexts == NULL) /* Automatic provisioning failed */
add_context(gprs, NULL, OFONO_GPRS_CONTEXT_TYPE_INTERNET);
@@ -2892,12 +2891,6 @@ static void ofono_gprs_finish_register(struct ofono_gprs *gprs)
OFONO_ATOM_TYPE_NETREG,
netreg_watch, gprs, NULL);
- netreg_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_NETREG);
-
- if (netreg_atom && __ofono_atom_get_registered(netreg_atom))
- netreg_watch(netreg_atom,
- OFONO_ATOM_WATCH_CONDITION_REGISTERED, gprs);
-
__ofono_atom_register(gprs->atom, gprs_unregister);
}