aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-03-16 19:19:19 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-16 19:19:19 (GMT)
commitec1eae849eec62c1cad7ca393c5fdff4518db033 (patch)
tree0393b2bbface89e8bb6f6095f169c73b5668d467 /hs20
parent6c7fed4683dd1bdce9ca23c266f1e174374fc0d7 (diff)
downloadhostap-ec1eae849eec62c1cad7ca393c5fdff4518db033.zip
hostap-ec1eae849eec62c1cad7ca393c5fdff4518db033.tar.gz
hostap-ec1eae849eec62c1cad7ca393c5fdff4518db033.tar.bz2
hs20-osu-client: Remove dead code from sub_rem command line parsing
The error print could not have been reached since the exact same condition was verified above and exit(0) is called if the command line is invalid. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/osu_client.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 2907c64..f79f59b 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -3133,14 +3133,9 @@ int main(int argc, char *argv[])
usage();
exit(0);
}
- if (argc - optind < 2)
- wpa_printf(MSG_ERROR, "Server URL missing from command line");
- else
- ret = cmd_sub_rem(&ctx, argv[optind + 1],
- argc > optind + 2 ?
- argv[optind + 2] : NULL,
- argc > optind + 3 ?
- argv[optind + 3] : NULL);
+ ret = cmd_sub_rem(&ctx, argv[optind + 1],
+ argc > optind + 2 ? argv[optind + 2] : NULL,
+ argc > optind + 3 ? argv[optind + 3] : NULL);
} else if (strcmp(argv[optind], "pol_upd") == 0) {
if (argc - optind < 2) {
usage();