diff options
| author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-04-29 14:05:17 +0000 |
|---|---|---|
| committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-04-29 14:05:17 +0000 |
| commit | 748ef1915a66259d981a5a955d0c4b5b993aa251 (patch) | |
| tree | 0d8f290bbef684d43f9047b2b8a4f8fdd8127b3d /sys/dev/firewire | |
| parent | d1f7bcb5a2ca160f42499f29442bd372d376de9e (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire')
| -rw-r--r-- | sys/dev/firewire/fwohci.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 2ab6af81139f6..5fbd872b3210e 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -1085,20 +1085,20 @@ fwohci_txd(struct fwohci_softc *sc, struct fwohci_dbch *dbch) printf("already rcvd\n"); fw_xfer_done(xfer); } else { - xfer->state = FWXF_SENT; - if (err == EBUSY && fc->status != FWBUSRESET) { - xfer->state = FWXF_BUSY; - xfer->resp = err; - if (xfer->retry_req != NULL) - xfer->retry_req(xfer); - else + xfer->state = FWXF_SENT; + if (err == EBUSY && fc->status != FWBUSRESET) { + xfer->state = FWXF_BUSY; + xfer->resp = err; + if (xfer->retry_req != NULL) + xfer->retry_req(xfer); + else + fw_xfer_done(xfer); + } else if (stat != FWOHCIEV_ACKPEND) { + if (stat != FWOHCIEV_ACKCOMPL) + xfer->state = FWXF_SENTERR; + xfer->resp = err; fw_xfer_done(xfer); - } else if (stat != FWOHCIEV_ACKPEND) { - if (stat != FWOHCIEV_ACKCOMPL) - xfer->state = FWXF_SENTERR; - xfer->resp = err; - fw_xfer_done(xfer); - } + } } /* * The watchdog timer takes care of split |
