Skip to content

Commit

Permalink
p54spi: drop test for FW_STATE_RESET in p54spi_work
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov authored and John W. Linville committed May 20, 2009
1 parent 3f0d843 commit 4de2dc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/p54/p54spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4de2dc7

Please sign in to comment.