Merge tag 'acpi-5.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux-2.6-microblaze.git] / drivers / scsi / 53c700.c
index 77ccb96..1c6b4e6 100644 (file)
@@ -978,10 +978,10 @@ process_script_interrupt(__u32 dsps, __u32 dsp, struct scsi_cmnd *SCp,
                if (NCR_700_get_tag_neg_state(SCp->device) == NCR_700_DURING_TAG_NEGOTIATION)
                        NCR_700_set_tag_neg_state(SCp->device,
                                                  NCR_700_FINISHED_TAG_NEGOTIATION);
-                       
+
                /* check for contingent allegiance conditions */
-               if (hostdata->status[0] >> 1 == CHECK_CONDITION ||
-                   hostdata->status[0] >> 1 == COMMAND_TERMINATED) {
+               if (hostdata->status[0] == SAM_STAT_CHECK_CONDITION ||
+                   hostdata->status[0] == SAM_STAT_COMMAND_TERMINATED) {
                        struct NCR_700_command_slot *slot =
                                (struct NCR_700_command_slot *)SCp->host_scribble;
                        if(slot->flags == NCR_700_FLAG_AUTOSENSE) {