Remove an unnecessary function call.

Signed-off-by: Jef Driesen <jefdriesen@telenet.be>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Jef Driesen 2013-12-23 21:03:19 +01:00 committed by Dirk Hohndel
parent dbd14f8662
commit badce21b24

View file

@ -516,12 +516,6 @@ static int dive_cb(const unsigned char *data, unsigned int size,
return 1;
}
static dc_status_t import_device_data(dc_device_t *device, device_data_t *devicedata)
{
return dc_device_foreach(device, dive_cb, devicedata);
}
/*
* The device ID for libdivecomputer devices is the first 32-bit word
* of the SHA1 hash of the model/firmware/serial numbers.
@ -677,7 +671,7 @@ static const char *do_device_import(device_data_t *data)
if (rc != DC_STATUS_SUCCESS)
return translate("gettextFromC","Error registering the cancellation handler.");
rc = import_device_data(device, data);
rc = dc_device_foreach(device, dive_cb, data);
if (rc != DC_STATUS_SUCCESS)
return translate("gettextFromC","Dive data import error");