]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
cleanup: Remove unreachable code
authorBaligh Gasmi <gasmibal@gmail.com>
Fri, 18 Feb 2022 16:22:23 +0000 (17:22 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 4 Mar 2022 10:07:46 +0000 (12:07 +0200)
There is no need for unreachable code in these places, so remove it.

Signed-off-by: Baligh Gasmi <gasmibal@gmail.com>
hostapd/main.c
hs20/client/osu_client.c
hs20/client/spp_client.c
src/ap/wpa_auth_kay.c
wpa_supplicant/wpas_kay.c

index c9ec38d19f88d6c1417d9cfed7ee231f973c7dfe..7c347f90558c9ee6e578ecfba164a907aaaf46c4 100644 (file)
@@ -723,7 +723,6 @@ int main(int argc, char *argv[])
                case 'v':
                        show_version();
                        exit(1);
-                       break;
                case 'g':
                        if (hostapd_get_global_ctrl_iface(&interfaces, optarg))
                                return -1;
index 11bf0db35e9314d9ff760ec92d4104973f3c6829..77b15403cbfbecaa8192d848ad38bef1d83dfeb2 100644 (file)
@@ -3249,7 +3249,6 @@ int main(int argc, char *argv[])
                default:
                        usage();
                        exit(0);
-                       break;
                }
        }
 
index 39d10e0362f640deff8a95737b97a369598c7aec..194518e5aba71c25a8ec7d95776f4d444eee726e 100644 (file)
@@ -564,7 +564,6 @@ static int hs20_spp_exec(struct hs20_osu_client *ctx, xml_node_t *exec,
                        free(id);
                        return -1;
                }
-               return 0;
        }
 
        if (strcasecmp(name, "uploadMO") == 0) {
index ea4e9b29a444e92a7afc852bc4086525ccb6726d..e2c4e109e47c4d33e864b638d9abdf3fd13c1009 100644 (file)
@@ -138,7 +138,6 @@ static unsigned int conf_offset_val(enum confidentiality_offset co)
        switch (co) {
        case CONFIDENTIALITY_OFFSET_30:
                return 30;
-               break;
        case CONFIDENTIALITY_OFFSET_50:
                return 50;
        default:
index 4d1ce027158b01d46054b8988528c88bae17bdcb..c3ef93bf7b998bb459801fb8e8ac973cae2d2483 100644 (file)
@@ -103,7 +103,6 @@ static unsigned int conf_offset_val(enum confidentiality_offset co)
        switch (co) {
        case CONFIDENTIALITY_OFFSET_30:
                return 30;
-               break;
        case CONFIDENTIALITY_OFFSET_50:
                return 50;
        default: