diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c index 612595b42a37..ca8e2a951e75 100644 --- a/sys/dev/aic7xxx/aic79xx.c +++ b/sys/dev/aic7xxx/aic79xx.c @@ -9391,7 +9391,7 @@ ahd_recover_commands(struct ahd_softc *ahd) * untimed-out command is outstanding. */ if (ahd_other_scb_timeout(ahd, scb, - active_scb) != 0) + active_scb) == 0) goto bus_reset; continue; } @@ -9430,7 +9430,7 @@ ahd_recover_commands(struct ahd_softc *ahd) * some other command. Reset the timer * and go on. */ - if (ahd_other_scb_timeout(ahd, scb, NULL) != 0) + if (ahd_other_scb_timeout(ahd, scb, NULL) == 0) goto bus_reset; } else { /*