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>
This commit is contained in:
Max Filippov 2009-05-18 21:28:55 +04:00 коммит произвёл John W. Linville
Родитель 3f0d843b5c
Коммит 4de2dc74a1
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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);