Don't test the return value from the actual command when determining
success/failure for submission of the command. The caller will want to deal with this itself.
This commit is contained in:
parent
56cda6bf39
commit
6e64832134
@ -846,11 +846,6 @@ amr_wait_command(struct amr_command *ac)
|
||||
while ((ac->ac_flags & AMR_CMD_BUSY) && (count < 30)) {
|
||||
tsleep(ac, PRIBIO | PCATCH, "amrwcmd", hz);
|
||||
}
|
||||
|
||||
if (ac->ac_status != 0) {
|
||||
device_printf(sc->amr_dev, "I/O error - 0x%x\n", ac->ac_status);
|
||||
return(EIO);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user