drivers/nble: Fix use of uninitialized status

Change-Id: Id14f33ca02717ba9a3d2c7e557672b32a139752d
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-02-15 12:18:49 +02:00 committed by Gerrit Code Review
commit 3df0272a38

View file

@ -449,6 +449,8 @@ void on_nble_gatts_write_evt(const struct nble_gatt_wr_evt *evt,
if (attr->write) {
reply_data.status = attr->write(NULL, attr, buf, buflen,
evt->offset);
} else {
reply_data.status = -EINVAL;
}
if (evt->reply) {