summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-08-15 01:39:44 +0200
committerGravatar Martin Szulecki2010-10-04 00:33:35 +0200
commit0ce860bfd858a79fd27015eaea22b1b62ebe34a2 (patch)
treede037e7dc77a74f905f91b95a818591314e9faa5 /src
parente6cdcf5fecf2ee71b383b8804d9d0322b1db446b (diff)
downloadlibimobiledevice-0ce860bfd858a79fd27015eaea22b1b62ebe34a2.tar.gz
libimobiledevice-0ce860bfd858a79fd27015eaea22b1b62ebe34a2.tar.bz2
device_link_service: removed unused local variable
Diffstat (limited to 'src')
-rw-r--r--src/device_link_service.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device_link_service.c b/src/device_link_service.c
index 51fcc80..e9aa675 100644
--- a/src/device_link_service.c
+++ b/src/device_link_service.c
@@ -36,12 +36,11 @@
*/
static char *device_link_service_get_message(plist_t dl_msg)
{
- uint32_t cnt = 0;
plist_t cmd = 0;
char *cmd_str = NULL;
/* sanity check */
- if ((plist_get_node_type(dl_msg) != PLIST_ARRAY) || ((cnt = plist_array_get_size(dl_msg)) < 1)) {
+ if ((plist_get_node_type(dl_msg) != PLIST_ARRAY) || (plist_array_get_size(dl_msg) < 1)) {
return NULL;
}