staging: wilc1000: remove unused variable msg_len
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Mon, 22 Jun 2015 07:05:42 +0000 (07:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jul 2015 02:26:44 +0000 (19:26 -0700)
This patch removes a ununsed variable msg_len and its associated code.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan_cfg.c

index 3cffe55b3a93915c02e84540ba5eec3af769f822..04d032783dae33a8889854d68046bdb9e8729ad4 100644 (file)
@@ -513,7 +513,6 @@ static int wilc_wlan_cfg_indicate_rx(uint8_t *frame, int size, wilc_cfg_rsp_t *r
        int ret = 1;
        uint8_t msg_type;
        uint8_t msg_id;
-       uint16_t msg_len;
        #ifdef WILC_FULLY_HOSTING_AP
        u32 *ptru32Frame;
        bool bStatus = frame[2];
@@ -528,11 +527,6 @@ static int wilc_wlan_cfg_indicate_rx(uint8_t *frame, int size, wilc_cfg_rsp_t *r
 
        msg_type = frame[0];
        msg_id = frame[1];      /* seq no */
-#ifdef BIG_ENDIAN
-       msg_len = (frame[2] << 8) | frame[3];
-#else
-       msg_len = (frame[3] << 8) | frame[2];
-#endif
        frame += 4;
        size -= 4;