Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit 1946e9b8bc39b1b5d50349d0b3452ceecda78663 Author: Sven Eckelmann sven@narfation.org Date: Sat Mar 14 12:42:52 2015 +0100
alfred: Remove else and break after return
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
1946e9b8bc39b1b5d50349d0b3452ceecda78663 hash.c | 3 +-- main.c | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/hash.c b/hash.c index a53bb9c..87588cd 100644 --- a/hash.c +++ b/hash.c @@ -142,10 +142,9 @@ struct hash_it_t *hash_iterate(struct hashtable_t *hash, iter->bucket = (*iter->first_bucket); iter->first_bucket = &hash->table[iter->index]; return iter; - } else { - iter->bucket = NULL; }
+ iter->bucket = NULL; }
} else if (iter->prev_bucket != NULL) { diff --git a/main.c b/main.c index 7ad4625..02553c0 100644 --- a/main.c +++ b/main.c @@ -265,19 +265,14 @@ int main(int argc, char *argv[]) switch (globals->clientmode) { case CLIENT_NONE: return alfred_server(globals); - break; case CLIENT_REQUEST_DATA: return alfred_client_request_data(globals); - break; case CLIENT_SET_DATA: return alfred_client_set_data(globals); - break; case CLIENT_MODESWITCH: return alfred_client_modeswitch(globals); - break; case CLIENT_CHANGE_INTERFACE: return alfred_client_change_interface(globals); - break; }
return 0;