scsi: core: Kill DRIVER_SENSE
[linux-2.6-microblaze.git] / drivers / scsi / ch.c
index d5990f6..fc7197a 100644 (file)
@@ -200,7 +200,7 @@ ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len,
                                  MAX_RETRIES, NULL);
        if (result < 0)
                return result;
-       if (driver_byte(result) == DRIVER_SENSE) {
+       if (scsi_sense_valid(&sshdr)) {
                if (debug)
                        scsi_print_sense_hdr(ch->device, ch->name, &sshdr);
                errno = ch_find_errno(&sshdr);