]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: wfx: drop unused attribute 'join_complete_status'
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 20 Apr 2020 16:03:11 +0000 (18:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 11:26:06 +0000 (13:26 +0200)
The field join_complete_status is never read. Drop it.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200420160311.57323-17-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/sta.c
drivers/staging/wfx/wfx.h

index 1e43e3b65953356a46c9e6479001e90a4b243f62..5d5c8951f50b1f98505ee77dd8c1ae7cddbf2c77 100644 (file)
@@ -361,10 +361,8 @@ static void wfx_do_join(struct wfx_vif *wvif)
        ret = hif_join(wvif, conf, wvif->channel, ssid, ssidlen);
        if (ret) {
                ieee80211_connection_loss(wvif->vif);
-               wvif->join_complete_status = -1;
                wfx_do_unjoin(wvif);
        } else {
-               wvif->join_complete_status = 0;
                /* Due to beacon filtering it is possible that the
                 * AP's beacon is not known for the mac80211 stack.
                 * Disable filtering temporary to make sure the stack
index 8d29bf77cfed8d97b7415f9edc2f6ec44d32d980..706e95cd1092e855e36f68f5ee1f922cce389f82 100644 (file)
@@ -82,8 +82,6 @@ struct wfx_vif {
 
        unsigned long           uapsd_mask;
 
-       int                     join_complete_status;
-
        /* avoid some operations in parallel with scan */
        struct mutex            scan_lock;
        struct work_struct      scan_work;