Commit ec8a1e9a authored by Jeff Garzik's avatar Jeff Garzik

[libata] fix build error, minor cleanups

parent 3cc46e22
...@@ -2142,6 +2142,7 @@ static void ata_pio_task(void *_data) ...@@ -2142,6 +2142,7 @@ static void ata_pio_task(void *_data)
static void ata_qc_timeout(struct ata_queued_cmd *qc) static void ata_qc_timeout(struct ata_queued_cmd *qc)
{ {
struct ata_port *ap = qc->ap;
u8 host_stat = 0, drv_stat; u8 host_stat = 0, drv_stat;
DPRINTK("ENTER\n"); DPRINTK("ENTER\n");
...@@ -2181,7 +2182,6 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc) ...@@ -2181,7 +2182,6 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc)
break; break;
} }
out:
DPRINTK("EXIT\n"); DPRINTK("EXIT\n");
} }
...@@ -2206,7 +2206,6 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc) ...@@ -2206,7 +2206,6 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc)
void ata_eng_timeout(struct ata_port *ap) void ata_eng_timeout(struct ata_port *ap)
{ {
u8 host_stat = 0, drv_stat;
struct ata_queued_cmd *qc; struct ata_queued_cmd *qc;
DPRINTK("ENTER\n"); DPRINTK("ENTER\n");
...@@ -2317,7 +2316,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat) ...@@ -2317,7 +2316,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat)
qc->scsidone(cmd); qc->scsidone(cmd);
} }
qc->flags &= ~ATA_QCFLAG_ACTIVE; qc->flags = 0;
tag = qc->tag; tag = qc->tag;
if (likely(ata_tag_valid(tag))) { if (likely(ata_tag_valid(tag))) {
if (tag == ap->active_tag) if (tag == ap->active_tag)
......
...@@ -137,11 +137,6 @@ enum { ...@@ -137,11 +137,6 @@ enum {
PORT_UNKNOWN = 0, PORT_UNKNOWN = 0,
PORT_ENABLED = 1, PORT_ENABLED = 1,
PORT_DISABLED = 2, PORT_DISABLED = 2,
/* ata_qc_cb_t flags - note uses above ATA_QCFLAG_xxx namespace,
* but not numberspace
*/
ATA_QCFLAG_TIMEOUT = (1 << 0),
}; };
enum pio_task_states { enum pio_task_states {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment