Skip to contentSkip to conversation

shared/att: bugfix for BT_ATT_ALL_REQUESTS

PATCH Applied Michael Janssen 2 participants 2 messages Nov 11, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shared/att: bugfix for BT_ATT_ALL_REQUESTS

opcode can now be zero, since that is BT_ATT_ALL_REQUESTS

---
 src/shared/att.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/shared/att.c +1 -1
index aa80cef..48c36ac 100644
@@ -1115,7 +1115,7 @@ unsigned int bt_att_register(struct bt_att *att, uint8_t opcode,
 {
 	struct att_notify *notify;
 
-	if (!att || !opcode || !callback || !att->io)
+	if (!att || !callback || !att->io)
 		return 0;
 
 	notify = new0(struct att_notify, 1);
Signature · 1 line
2.1.0.rc2.206.gedb03e5
maintainer Applied
#1 lore raw

Hi Michael,

Quoted 20 lines · Michael Janssen

opcode can now be zero, since that is BT_ATT_ALL_REQUESTS

---
 src/shared/att.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/shared/att.c +1 -2
index aa80cef..48c36ac 100644
@@ -1115,7 +1115,7 @@ unsigned int bt_att_register(struct bt_att *att, uint8_t opcode,
 {
        struct att_notify *notify;
 
-       if (!att || !opcode || !callback || !att->io)
+       if (!att || !callback || !att->io)
                return 0;
 
        notify = new0(struct att_notify, 1);
--
Quoted 1 line

2.1.0.rc2.206.gedb03e5

Applied, thanks.

Signature · 1 line
Luiz Augusto von Dentz