summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andreas Henriksson2014-05-05 11:46:11 +0200
committerGravatar Andreas Henriksson2014-05-05 11:46:11 +0200
commit1be575f828c4affeae8f2e638e2c1044b79d8ee5 (patch)
tree846916e868e3af70ff07ba10317b9fa9b8d6a506
parent7b3aa777cbc65a2c2db5c31acbfa0582952b6dd9 (diff)
downloadlibimobiledevice-1be575f828c4affeae8f2e638e2c1044b79d8ee5.tar.gz
libimobiledevice-1be575f828c4affeae8f2e638e2c1044b79d8ee5.tar.bz2
lockdown: cleanup: remove pointless goto
Minor cleanup. Drop useless code. We're already at "leave", so there's no need to (conditionally!) goto it.
-rw-r--r--src/lockdown.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index b96ddc6..6465281 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -751,10 +751,6 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t
host_id = generate_uuid();
pair_record_set_host_id(*pair_record, host_id);
- if (ret != LOCKDOWN_E_SUCCESS) {
- goto leave;
- }
-
leave:
if (host_id)
free(host_id);