From d87232b2a15a68a411469c80f3385d7b48d4c78f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 7 Jul 2015 12:08:48 +0300 Subject: [PATCH] Bluetooth: att: Fix minor coding style issues Change-Id: I36019a726187363e41ab72d9a26b2b8ae5c7f4bb Signed-off-by: Johan Hedberg --- net/bluetooth/att.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/bluetooth/att.c b/net/bluetooth/att.c index d44984aaec5..43cc5cb0ee8 100644 --- a/net/bluetooth/att.c +++ b/net/bluetooth/att.c @@ -244,6 +244,7 @@ static bool range_is_valid(uint16_t start, uint16_t end, uint16_t *err) return true; } + struct find_info_data { struct bt_conn *conn; struct bt_buf *buf; @@ -725,6 +726,7 @@ static uint8_t att_read_rsp(struct bt_conn *conn, uint8_t op, uint8_t rsp, } bt_l2cap_send(conn, BT_L2CAP_CID_ATT, data.buf); + return 0; } @@ -1297,8 +1299,9 @@ static void bt_att_recv(struct bt_conn *conn, struct bt_buf *buf) } /* Commands don't have response */ - if ((hdr->code & BT_ATT_OP_CMD_MASK)) + if ((hdr->code & BT_ATT_OP_CMD_MASK)) { goto done; + } if (err) { BT_DBG("ATT error 0x%02x", err);