udev: remove set but not used var

This commit is contained in:
Gustavo F. Padovan 2011-05-20 16:03:42 -03:00 committed by Denis Kenzior
parent fba5050f7f
commit e312060928
1 changed files with 1 additions and 2 deletions

View File

@ -105,7 +105,7 @@ static void add_mbm(struct ofono_modem *modem,
struct udev_device *udev_device)
{
const char *desc, *devnode;
const char *device, *data, *network, *gps;
const char *device, *data, *network;
int registered;
desc = udev_device_get_sysattr_value(udev_device, "device/interface");
@ -157,7 +157,6 @@ static void add_mbm(struct ofono_modem *modem,
device = ofono_modem_get_string(modem, MODEM_DEVICE);
data = ofono_modem_get_string(modem, DATA_DEVICE);
network = ofono_modem_get_string(modem, NETWORK_INTERFACE);
gps = ofono_modem_get_string(modem, GPS_DEVICE);
if (device != NULL && data != NULL && network != NULL) {
ofono_modem_set_integer(modem, "Registered", 1);