]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MBO: Silence a compiler warning when building without CONFIG_MBO
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 23 Jan 2017 04:41:47 +0000 (06:41 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jan 2017 04:41:47 +0000 (06:41 +0200)
The fail label is used only within ifdef CONFIG_MBO, so declare it in
the same manner.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/ctrl_iface.c

index 6b4aa054203850088e7307d087677a55114a6e40..62feaa407f8fd273944f6cb279a126f21b03726b 100644 (file)
@@ -1070,7 +1070,9 @@ static int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd,
                                  nei_pos > nei_rep ? nei_rep : NULL,
                                  nei_pos - nei_rep, mbo_len ? mbo : NULL,
                                  mbo_len);
+#ifdef CONFIG_MBO
 fail:
+#endif /* CONFIG_MBO */
        os_free(url);
        return ret;
 }