drivers/nble: gatt: Remove unneeded check
For size_t it is hard to be negative in the following check ... if (!data || len < 0) ... Change-Id: Ib995d568e10aa1e3cbaf28f46d267addb876f073 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
8e4ca413fd
commit
03969be306
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ static int attr_read(struct bt_gatt_attr *attr, uint8_t *data, size_t len)
|
|||
uint8_t i;
|
||||
int data_size;
|
||||
|
||||
if (!data || len < 0) {
|
||||
if (!data) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue