shared/btp: Fix return type in btp_send 20/204920/1
authorSzymon Janc <szymon.janc@codecoup.pl>
Fri, 23 Feb 2018 13:40:09 +0000 (14:40 +0100)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:32:35 +0000 (09:02 +0530)
This function returns bool.

Change-Id: Ie7d30dcb11a2e400a43e7f29ae92006caee1366e
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/shared/btp.c

index c0c21a7..abdb8c2 100644 (file)
@@ -299,7 +299,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;