From: Szymon Janc Date: Fri, 23 Feb 2018 13:40:09 +0000 (+0100) Subject: shared/btp: Fix return type in btp_send X-Git-Tag: accepted/tizen/unified/20190522.085452~1^2~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a50f365e272eda36e72fec9c4ed045815503bfa1;p=platform%2Fupstream%2Fbluez.git shared/btp: Fix return type in btp_send This function returns bool. Change-Id: Ie7d30dcb11a2e400a43e7f29ae92006caee1366e Signed-off-by: Amit Purwar --- diff --git a/src/shared/btp.c b/src/shared/btp.c index c0c21a7..abdb8c2 100644 --- a/src/shared/btp.c +++ b/src/shared/btp.c @@ -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;