gprs: Avoid shadowing error variable

This commit is contained in:
Marcel Holtmann 2012-07-15 20:26:12 -03:00
parent f20e7e9b3d
commit 0d4e80c002
1 changed files with 4 additions and 4 deletions

View File

@ -1516,12 +1516,12 @@ static void gprs_attach_callback(const struct ofono_error *error, void *data)
gprs->driver_attached = !gprs->driver_attached; gprs->driver_attached = !gprs->driver_attached;
if (gprs->driver->attached_status == NULL) { if (gprs->driver->attached_status == NULL) {
struct ofono_error error; struct ofono_error status_error;
error.type = OFONO_ERROR_TYPE_FAILURE; status_error.type = OFONO_ERROR_TYPE_FAILURE;
error.error = 0; status_error.error = 0;
registration_status_cb(&error, -1, gprs); registration_status_cb(&status_error, -1, gprs);
return; return;
} }