cleanup: Remove unreachable code

There is no need for unreachable code in these places, so remove it.

Signed-off-by: Baligh Gasmi <gasmibal@gmail.com>
This commit is contained in:
Baligh Gasmi 2022-02-18 17:22:23 +01:00 committed by Jouni Malinen
parent 9683195ee5
commit 3d86fcee07
5 changed files with 0 additions and 5 deletions

View 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;

View file

@ -3249,7 +3249,6 @@ int main(int argc, char *argv[])
default:
usage();
exit(0);
break;
}
}

View 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) {

View 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:

View 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: