Diff between 5e9048c87882d8eb322a6b1b5d3391756ba88354 and 7f54269accac8b4e36c87d3ba297b9a9a122504d
Changed Files
| File | Additions | Deletions | Status |
| serial/port.c | +3 | -3 | modified |
Full Patch
diff --git a/serial/port.c b/serial/port.c
index 3b36d44..5b76d14 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -463,10 +463,10 @@ connect:
BT_IO_OPT_DEST_BDADDR, &device->dst,
BT_IO_OPT_CHANNEL, port->channel,
BT_IO_OPT_INVALID);
- if (port->io)
- return 0;
+ if (port->io == NULL)
+ return -EIO;
- return -errno;
+ return 0;
}
static struct serial_port *create_port(struct serial_device *device,