csr_bcsp: Fix missing errno attribution

do_command() is supposed to set errno if returning -1.
This commit is contained in:
Anderson Lizardo 2011-11-16 09:20:03 -04:00 committed by Johan Hedberg
parent 7232da34fa
commit e40bc80bf5

View File

@ -219,6 +219,7 @@ static int do_command(uint16_t command, uint16_t seqnum, uint16_t varid, uint8_t
if (timeout++ > 5000) {
fprintf(stderr, "Operation timed out\n");
errno = ETIMEDOUT;
return -1;
}
}