diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2009-05-18 21:28:55 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 22:46:28 +0400 |
commit | 4de2dc74a1c7dedcfbe8290316f1a239a7c86554 (patch) | |
tree | 3f3bc5360f16e18486af4dd2e5ad02407d44804a /drivers/net/wireless/p54/p54spi.c | |
parent | 3f0d843b5c94be824c2027f01348f360958e5542 (diff) | |
download | linux-4de2dc74a1c7dedcfbe8290316f1a239a7c86554.tar.xz |
p54spi: drop test for FW_STATE_RESET in p54spi_work
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>
Diffstat (limited to 'drivers/net/wireless/p54/p54spi.c')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 40aeb4387dc9..83116baeb110 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c @@ -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); |