projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e7685
)
shared/btp: Fix return type in btp_send
20/204920/1
author
Szymon Janc
<szymon.janc@codecoup.pl>
Fri, 23 Feb 2018 13:40:09 +0000
(14:40 +0100)
committer
Amit 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
patch
|
blob
|
history
diff --git
a/src/shared/btp.c
b/src/shared/btp.c
index
c0c21a7
..
abdb8c2
100644
(file)
--- 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;