diff options
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 15499522e642..2ec65a8fda79 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -1208,7 +1208,7 @@ fsm_start: | |||
1208 | DPRINTK("ata%u: dev %u command complete, drv_stat 0x%x\n", | 1208 | DPRINTK("ata%u: dev %u command complete, drv_stat 0x%x\n", |
1209 | ap->print_id, qc->dev->devno, status); | 1209 | ap->print_id, qc->dev->devno, status); |
1210 | 1210 | ||
1211 | WARN_ON(qc->err_mask); | 1211 | WARN_ON(qc->err_mask & (AC_ERR_DEV | AC_ERR_HSM)); |
1212 | 1212 | ||
1213 | ap->hsm_task_state = HSM_ST_IDLE; | 1213 | ap->hsm_task_state = HSM_ST_IDLE; |
1214 | 1214 | ||
@@ -1222,7 +1222,7 @@ fsm_start: | |||
1222 | /* make sure qc->err_mask is available to | 1222 | /* make sure qc->err_mask is available to |
1223 | * know what's wrong and recover | 1223 | * know what's wrong and recover |
1224 | */ | 1224 | */ |
1225 | WARN_ON(qc->err_mask == 0); | 1225 | WARN_ON(!(qc->err_mask & (AC_ERR_DEV | AC_ERR_HSM))); |
1226 | 1226 | ||
1227 | ap->hsm_task_state = HSM_ST_IDLE; | 1227 | ap->hsm_task_state = HSM_ST_IDLE; |
1228 | 1228 | ||