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:
Родитель
3f0d843b5c
Коммит
4de2dc74a1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче