summaryrefslogtreecommitdiffstats
path: root/src/device_link_service.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-08-15 01:39:44 +0200
committerGravatar Nikias Bassen2010-08-15 01:39:44 +0200
commit34ebb8accc32a161bd6a7cebf9d8c909696d0634 (patch)
tree7b5e1981b744cd68dc1bc5d71f54102fa42411ee /src/device_link_service.c
parentd133d337087ebb3171596c428715821eb0780ff5 (diff)
downloadlibimobiledevice-34ebb8accc32a161bd6a7cebf9d8c909696d0634.tar.gz
libimobiledevice-34ebb8accc32a161bd6a7cebf9d8c909696d0634.tar.bz2
device_link_service: removed unused local variable
Diffstat (limited to 'src/device_link_service.c')
-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;
}