staging: wilc1000: remove unnecessary wilc_rx_complete function
authorChris Park <chris.park@atmel.com>
Thu, 4 Feb 2016 09:24:27 +0000 (18:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
This patch remove unnecessary wilc_rx_complete function
because this function only print unused log message.
remove unused has_packet variable nomore.

Signed-off-by: Chris Park <chris.park@atmel.com>
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c

index 202be15b615fc9eab5365b27d453e84b3a4adc11..e702020b8e9dec205e6d9a999e7aca9407da7cf5 100644 (file)
@@ -372,11 +372,6 @@ static int linux_wlan_txq_task(void *vp)
        return 0;
 }
 
-void wilc_rx_complete(struct wilc *nic)
-{
-       PRINT_D(RX_DBG, "RX completed\n");
-}
-
 int wilc_wlan_get_firmware(struct net_device *dev)
 {
        struct wilc_vif *vif;
index 07a4ff10bb65565c11a5154d98edf5246a1c030c..3077f5d416c7ea2505d49d41237ecd60eae167ec 100644 (file)
@@ -228,7 +228,6 @@ int wilc1000_wlan_init(struct net_device *dev, struct wilc_vif *vif);
 
 void wilc_frmw_to_linux(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset);
 void wilc_mac_indicate(struct wilc *wilc, int flag);
-void wilc_rx_complete(struct wilc *wilc);
 void wilc_dbg(u8 *buff);
 
 int wilc_lock_timeout(struct wilc *wilc, void *, u32 timeout);
index dd0c051fedca4ec4aa95541ac59cefcacb6c054f..98527f6f039469d7ded215330b55713ad0db4862 100644 (file)
@@ -811,7 +811,7 @@ _end_:
 
 static void wilc_wlan_handle_rxq(struct wilc *wilc)
 {
-       int offset = 0, size, has_packet = 0;
+       int offset = 0, size;
        u8 *buffer;
        struct rxq_entry_t *rqe;
 
@@ -866,7 +866,6 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
                                                              &buffer[offset],
                                                              pkt_len,
                                                              pkt_offset);
-                                               has_packet = 1;
                                        }
                                } else {
                                        struct wilc_cfg_rsp rsp;
@@ -888,10 +887,6 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
                                break;
                } while (1);
                kfree(rqe);
-
-               if (has_packet)
-                       wilc_rx_complete(wilc);
-
        } while (1);
 
        wilc->rxq_exit = 1;