]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - phy.c
info: macro-ify ext_feat_print()
[thirdparty/iw.git] / phy.c
diff --git a/phy.c b/phy.c
index ba89d46b3f2f776990dbf1f2a63583730ce4b75f..716677eff28d4462fdb7d448f531b346fd9df389 100644 (file)
--- a/phy.c
+++ b/phy.c
@@ -330,8 +330,9 @@ static int handle_cac(struct nl80211_state *state,
                err = parse_freqchan(&chandef, false, argc - 3, argv + 3, NULL);
        } else {
                err = 1;
-               goto err_out;
        }
+       if (err)
+               goto err_out;
 
        cac_trigger_argv = calloc(argc + 1, sizeof(char*));
        if (!cac_trigger_argv) {