Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29381
b: refs/heads/master
c: 587005d
h: refs/heads/master
i:
  29379: 1cc2cb4
v: v3
  • Loading branch information
Jeff Garzik committed Feb 11, 2006
1 parent fd694b6 commit 499fb30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cb9d721d9df9182a42d1ff59427a100c6522efc
refs/heads/master: 587005de144acd3007b8e7f2a2a7c6add157c155
14 changes: 7 additions & 7 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3226,7 +3226,7 @@ static void ata_pio_sectors(struct ata_queued_cmd *qc)
/* READ/WRITE MULTIPLE */
unsigned int nsect;

assert(qc->dev->multi_count);
WARN_ON(qc->dev->multi_count == 0);

nsect = min(qc->nsect - qc->cursect, qc->dev->multi_count);
while (nsect--)
Expand All @@ -3251,7 +3251,7 @@ static void atapi_send_cdb(struct ata_port *ap, struct ata_queued_cmd *qc)
{
/* send SCSI cdb */
DPRINTK("send cdb\n");
assert(ap->cdb_len >= 12);
WARN_ON(ap->cdb_len < 12);

ata_data_xfer(ap, qc->cdb, ap->cdb_len, 1);
ata_altstatus(ap); /* flush */
Expand Down Expand Up @@ -3298,8 +3298,8 @@ static int ata_pio_first_block(struct ata_port *ap)
int has_next;

qc = ata_qc_from_tag(ap, ap->active_tag);
assert(qc != NULL);
assert(qc->flags & ATA_QCFLAG_ACTIVE);
WARN_ON(qc == NULL);
WARN_ON((qc->flags & ATA_QCFLAG_ACTIVE) == 0);

/* if polling, we will stay in the work queue after sending the data.
* otherwise, interrupt handler takes over after sending the data.
Expand Down Expand Up @@ -3945,7 +3945,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
break;

case ATA_PROT_DMA:
assert(!(qc->tf.flags & ATA_TFLAG_POLLING));
WARN_ON(qc->tf.flags & ATA_TFLAG_POLLING);

ap->ops->tf_load(ap, &qc->tf); /* load tf registers */
ap->ops->bmdma_setup(qc); /* set up bmdma */
Expand Down Expand Up @@ -3997,7 +3997,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
break;

case ATA_PROT_ATAPI_DMA:
assert(!(qc->tf.flags & ATA_TFLAG_POLLING));
WARN_ON(qc->tf.flags & ATA_TFLAG_POLLING);

ap->ops->tf_load(ap, &qc->tf); /* load tf registers */
ap->ops->bmdma_setup(qc); /* set up bmdma */
Expand Down Expand Up @@ -4415,7 +4415,7 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
/* make sure qc->err_mask is available to
* know what's wrong and recover
*/
assert(qc->err_mask);
WARN_ON(qc->err_mask == 0);

ap->hsm_task_state = HSM_ST_IDLE;
ata_qc_complete(qc);
Expand Down

0 comments on commit 499fb30

Please sign in to comment.