motech-lps-30x: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. It only reads one byte, and a zero result is handled
appropriately.
This commit is contained in:
Martin Ling 2014-09-21 18:59:45 +01:00 committed by Uwe Hermann
parent 51056d61ec
commit e050124095
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data)
if (revents == G_IO_IN) { /* Serial data arrived. */
while (LINELEN_MAX - devc->buflen - 2 > 0) {
len = serial_read(serial, devc->buf + devc->buflen, 1);
len = serial_read_nonblocking(serial, devc->buf + devc->buflen, 1);
if (len < 1)
break;