mirror of git://git.sysmocom.de/ofono
btio: Fix unused variable warning
This commit is contained in:
parent
ce861145f0
commit
7414d16a24
|
@ -1133,8 +1133,10 @@ gboolean bt_io_accept(GIOChannel *io, BtIOConnect connect, gpointer user_data,
|
|||
}
|
||||
|
||||
if (!(pfd.revents & POLLOUT)) {
|
||||
int ret;
|
||||
ret = read(sock, &c, 1);
|
||||
if (read(sock, &c, 1) < 0) {
|
||||
ERROR_FAILED(err, "read", errno);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
accept_add(io, connect, user_data, destroy);
|
||||
|
|
Loading…
Reference in New Issue