summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup.c
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-23 17:39:01 -0800
committerGravatar Nikias Bassen2022-04-30 13:34:21 +0200
commitcf2c7d48380969200034afeab93169e68c34c397 (patch)
treea96f518be279922d00898a3ce81dc0ff483a40b2 /tools/idevicebackup.c
parent6cb13f9e6d3939930aecf91d8e23d1896a3b92e5 (diff)
downloadlibimobiledevice-cf2c7d48380969200034afeab93169e68c34c397.tar.gz
libimobiledevice-cf2c7d48380969200034afeab93169e68c34c397.tar.bz2
[clang-tidy] Do not use else after return
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/idevicebackup.c')
-rw-r--r--tools/idevicebackup.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index 0affd7a..2856fda 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -926,15 +926,16 @@ int main(int argc, char *argv[])
926 if (aerr == AFC_E_SUCCESS) { 926 if (aerr == AFC_E_SUCCESS) {
927 do_post_notification(NP_SYNC_DID_START); 927 do_post_notification(NP_SYNC_DID_START);
928 break; 928 break;
929 } else if (aerr == AFC_E_OP_WOULD_BLOCK) { 929 }
930 if (aerr == AFC_E_OP_WOULD_BLOCK) {
930 usleep(LOCK_WAIT); 931 usleep(LOCK_WAIT);
931 continue; 932 continue;
932 } else {
933 fprintf(stderr, "ERROR: could not lock file! error code: %d\n", aerr);
934 afc_file_close(afc, lockfile);
935 lockfile = 0;
936 cmd = CMD_LEAVE;
937 } 933 }
934
935 fprintf(stderr, "ERROR: could not lock file! error code: %d\n", aerr);
936 afc_file_close(afc, lockfile);
937 lockfile = 0;
938 cmd = CMD_LEAVE;
938 } 939 }
939 if (i == LOCK_ATTEMPTS) { 940 if (i == LOCK_ATTEMPTS) {
940 fprintf(stderr, "ERROR: timeout while locking for sync\n"); 941 fprintf(stderr, "ERROR: timeout while locking for sync\n");