diff options
| author | Scott Long <scottl@FreeBSD.org> | 2005-09-25 17:12:41 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2005-09-25 17:12:41 +0000 |
| commit | 2eea70515c189e5c7c5457efd3e875ed395d736b (patch) | |
| tree | ace9c1e800f0cfb392c3a1fd36dd6adde43e0989 /sys/dev/ips/ips_disk.c | |
| parent | f8a935ff17502780259420a6e5e02ed6c9282c27 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ips/ips_disk.c')
| -rw-r--r-- | sys/dev/ips/ips_disk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ips/ips_disk.c b/sys/dev/ips/ips_disk.c index 7a8f5fd85ac8d..7cadc933495bd 100644 --- a/sys/dev/ips/ips_disk.c +++ b/sys/dev/ips/ips_disk.c @@ -222,7 +222,7 @@ ipsd_dump(void *arg, void *virtual, vm_offset_t physical, off_t offset, error = EIO; break; } - if (COMMAND_ERROR(&command->status)) { + if (COMMAND_ERROR(command)) { error = EIO; break; } @@ -251,7 +251,7 @@ ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, int error) if (error) { printf("ipsd_dump_map_sg: error %d\n", error); - command->status.value = IPS_ERROR_STATUS; + ips_set_error(command, error); return; } @@ -292,7 +292,7 @@ static void ipsd_dump_block_complete(ips_command_t *command) { - if (COMMAND_ERROR(&command->status)) + if (COMMAND_ERROR(command)) printf("ipsd_dump completion error= 0x%x\n", command->status.value); |
