]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hs20/client/osu_client.c
hs20-osu-client: Remove dead code from sub_rem command line parsing
[thirdparty/hostap.git] / hs20 / client / osu_client.c
index 2907c6412a92e0b547c50bd771672f999d368181..f79f59bbbb68e7763c5dfacd2f2128d2e6462aab 100644 (file)
@@ -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();