From 31f0c4e9c1ded8d59f755b76a4947dae05e19340 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 23 Feb 2018 14:40:09 +0100 Subject: [PATCH] shared/btp: Fix return type in btp_send This function returns bool. --- src/shared/btp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/btp.c b/src/shared/btp.c index 93df37abc..7eea241a2 100644 --- a/src/shared/btp.c +++ b/src/shared/btp.c @@ -300,7 +300,7 @@ bool btp_send(struct btp *btp, uint8_t service, uint8_t opcode, uint8_t index, len = sizeof(*hdr) + length; hdr = l_malloc(len); if (!hdr) - return NULL; + return false; hdr->service = service; hdr->opcode = opcode; -- 2.47.3