p54spi: drop test for FW_STATE_RESET in p54spi_work
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 18 May 2009 17:28:55 +0000 (21:28 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:28 +0000 (14:46 -0400)
Drop test for FW_STATE_RESET in p54spi_work as fw_state
is never assigned this value.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c

index 40aeb4387dc9f7f9ea8f1a5e822fa81b870f2c6d..83116baeb110082b2f94e3bb40186f8e98f97ad8 100644 (file)
@@ -525,8 +525,7 @@ static void p54spi_work(struct work_struct *work)
 
        mutex_lock(&priv->mutex);
 
-       if (priv->fw_state == FW_STATE_OFF &&
-           priv->fw_state == FW_STATE_RESET)
+       if (priv->fw_state == FW_STATE_OFF)
                goto out;
 
        ints = p54spi_read32(priv, SPI_ADRS_HOST_INTERRUPTS);