Style fix, return B_ERROR instead of hacking together a neg. return code.

This commit is contained in:
Alexander von Gluck IV 2011-12-08 17:11:22 -06:00
parent 36de623307
commit 8c01b45a65

View File

@ -70,13 +70,13 @@ dp_aux_speak(uint8 connectorIndex, uint8 *send, int sendBytes,
switch(args.v1.ucReplyStatus) {
case 1:
ERROR("%s: dp_aux_ch timeout!\n", __func__);
return -B_TIMED_OUT;
return B_ERROR;
case 2:
ERROR("%s: dp_aux_ch flags not zero!\n", __func__);
return -B_BUSY;
return B_ERROR;
case 3:
ERROR("%s: dp_aux_ch error!\n", __func__);
return -B_IO_ERROR;
return B_ERROR;
}
int recvLength = args.v1.ucDataOutLen;