]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: wilc1000: remove unused elements in 'wilc' struct
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 18 Jul 2018 22:45:05 +0000 (04:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:04:47 +0000 (09:04 +0200)
Cleanup patch to remove unused elements from 'wilc' struct.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c

index fe18ae9843db32eb93ab320509fa17588932c2c7..22f348626d0ac78edc2b282089e72bbd4de1809f 100644 (file)
@@ -157,12 +157,8 @@ struct wilc {
 
        struct txq_entry_t txq_head;
        int txq_entries;
-       int txq_exit;
 
        struct rxq_entry_t rxq_head;
-       int rxq_exit;
-
-       unsigned char eth_src_address[NUM_CONCURRENT_IFC][6];
 
        const struct firmware *firmware;
 
index 8e71c282ecda97353c45608f1b0481ca3f72e164..c77e5c827c4da9ac190e1ac7283f9f7cab850cd0 100644 (file)
@@ -527,7 +527,6 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
        wilc = vif->wilc;
 
        txb = wilc->tx_buffer;
-       wilc->txq_exit = 0;
 
        if (wilc->quit)
                goto out;
@@ -713,7 +712,6 @@ out_release_bus:
 out:
        mutex_unlock(&wilc->txq_add_to_head_cs);
 
-       wilc->txq_exit = 1;
        *txq_count = wilc->txq_entries;
        return ret;
 }
@@ -780,8 +778,6 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
        u8 *buffer;
        struct rxq_entry_t *rqe;
 
-       wilc->rxq_exit = 0;
-
        do {
                if (wilc->quit) {
                        complete(&wilc->cfg_event);
@@ -797,8 +793,6 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
 
                kfree(rqe);
        } while (1);
-
-       wilc->rxq_exit = 1;
 }
 
 static void wilc_unknown_isr_ext(struct wilc *wilc)