drivers/nble: Fix use of uninitialized status
Change-Id: Id14f33ca02717ba9a3d2c7e557672b32a139752d Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
3e00c7ad0e
commit
3df0272a38
1 changed files with 2 additions and 0 deletions
|
@ -449,6 +449,8 @@ void on_nble_gatts_write_evt(const struct nble_gatt_wr_evt *evt,
|
||||||
if (attr->write) {
|
if (attr->write) {
|
||||||
reply_data.status = attr->write(NULL, attr, buf, buflen,
|
reply_data.status = attr->write(NULL, attr, buf, buflen,
|
||||||
evt->offset);
|
evt->offset);
|
||||||
|
} else {
|
||||||
|
reply_data.status = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (evt->reply) {
|
if (evt->reply) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue