projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea47874
)
src/bluetooth-hdp: Fix unsigned var check
29/31629/1
submit/tizen/20141209.051848
author
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Mon, 8 Dec 2014 10:04:57 +0000
(15:34 +0530)
committer
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Mon, 8 Dec 2014 10:04:57 +0000
(15:34 +0530)
No use in checking 'if' unsigned variable 'size' is less than zero
Change-Id: I8a3872fa49f3b1a64d6f20b0705769838539e303
src/bluetooth-hdp.c
patch
|
blob
|
history
diff --git
a/src/bluetooth-hdp.c
b/src/bluetooth-hdp.c
index 7abfc816f42ccb2a1d77b6cf751ee2737e014394..c09b6cbe5ed9f15da5847f4b3635542968dc7adb 100644
(file)
--- a/
src/bluetooth-hdp.c
+++ b/
src/bluetooth-hdp.c
@@
-57,7
+57,7
@@
int bt_hdp_send_data(unsigned int channel, const char *data, unsigned int size)
int error = BT_ERROR_NONE;
BT_CHECK_INIT_STATUS();
- if (NULL == data
|| 0 >= size
) {
+ if (NULL == data) {
BT_ERR("%s", _bt_convert_error_to_string(BT_ERROR_INVALID_PARAMETER));
}
error = bluetooth_hdp_send_data(channel, data, size);