diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-31 20:40:20 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-02 11:02:56 +0100 |
commit | a9fbdaf46b23db5c598bf33d6bc5c4555b06e674 (patch) | |
tree | e7894501bd010d9904fe0069fc1b8121d2da4040 /toxav/toxav.c | |
parent | 6f42eadc54e81be50b7a817c72b0cf4d7ec5feb4 (diff) |
Do not use `else` after `return`.
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r-- | toxav/toxav.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c index 126e29a7..749519a2 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c | |||
@@ -1087,7 +1087,6 @@ ToxAVCall *call_new(ToxAV *av, uint32_t friend_number, TOXAV_ERR_CALL *error) | |||
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | av->calls_tail = av->calls_head = friend_number; | 1089 | av->calls_tail = av->calls_head = friend_number; |
1090 | |||
1091 | } else if (av->calls_tail < friend_number) { /* Appending */ | 1090 | } else if (av->calls_tail < friend_number) { /* Appending */ |
1092 | void *tmp = realloc(av->calls, sizeof(ToxAVCall *) * (friend_number + 1)); | 1091 | void *tmp = realloc(av->calls, sizeof(ToxAVCall *) * (friend_number + 1)); |
1093 | 1092 | ||
@@ -1111,7 +1110,6 @@ ToxAVCall *call_new(ToxAV *av, uint32_t friend_number, TOXAV_ERR_CALL *error) | |||
1111 | av->calls[av->calls_tail]->next = call; | 1110 | av->calls[av->calls_tail]->next = call; |
1112 | 1111 | ||
1113 | av->calls_tail = friend_number; | 1112 | av->calls_tail = friend_number; |
1114 | |||
1115 | } else if (av->calls_head > friend_number) { /* Inserting at front */ | 1113 | } else if (av->calls_head > friend_number) { /* Inserting at front */ |
1116 | call->next = av->calls[av->calls_head]; | 1114 | call->next = av->calls[av->calls_head]; |
1117 | av->calls[av->calls_head]->prev = call; | 1115 | av->calls[av->calls_head]->prev = call; |