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:
parent
9683195ee5
commit
3d86fcee07
5 changed files with 0 additions and 5 deletions
|
@ -723,7 +723,6 @@ int main(int argc, char *argv[])
|
||||||
case 'v':
|
case 'v':
|
||||||
show_version();
|
show_version();
|
||||||
exit(1);
|
exit(1);
|
||||||
break;
|
|
||||||
case 'g':
|
case 'g':
|
||||||
if (hostapd_get_global_ctrl_iface(&interfaces, optarg))
|
if (hostapd_get_global_ctrl_iface(&interfaces, optarg))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -3249,7 +3249,6 @@ int main(int argc, char *argv[])
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
exit(0);
|
exit(0);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -564,7 +564,6 @@ static int hs20_spp_exec(struct hs20_osu_client *ctx, xml_node_t *exec,
|
||||||
free(id);
|
free(id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcasecmp(name, "uploadMO") == 0) {
|
if (strcasecmp(name, "uploadMO") == 0) {
|
||||||
|
|
|
@ -138,7 +138,6 @@ static unsigned int conf_offset_val(enum confidentiality_offset co)
|
||||||
switch (co) {
|
switch (co) {
|
||||||
case CONFIDENTIALITY_OFFSET_30:
|
case CONFIDENTIALITY_OFFSET_30:
|
||||||
return 30;
|
return 30;
|
||||||
break;
|
|
||||||
case CONFIDENTIALITY_OFFSET_50:
|
case CONFIDENTIALITY_OFFSET_50:
|
||||||
return 50;
|
return 50;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -103,7 +103,6 @@ static unsigned int conf_offset_val(enum confidentiality_offset co)
|
||||||
switch (co) {
|
switch (co) {
|
||||||
case CONFIDENTIALITY_OFFSET_30:
|
case CONFIDENTIALITY_OFFSET_30:
|
||||||
return 30;
|
return 30;
|
||||||
break;
|
|
||||||
case CONFIDENTIALITY_OFFSET_50:
|
case CONFIDENTIALITY_OFFSET_50:
|
||||||
return 50;
|
return 50;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue