Bluetooth: nble: Catch and handle non-zero fn_index

Avoid multiple breaks and gracefully catch non-zero values of fn_index

Change-Id: I1cf7b271b8478e63af2da1f40b4caceb63d7ce90
Signed-off-by: Prasanna Karthik <pkarthik@intrinsyc.com>
This commit is contained in:
Prasanna Karthik 2017-02-09 16:18:48 -08:00 committed by Johan Hedberg
commit 6545aa3f52

View file

@ -557,8 +557,9 @@ static void deserialize_control(uint8_t fn_index, struct net_buf *buf)
rpc_init_cb(struct_data.version, true);
}
break;
break;
default:
panic(-1);
break;
}
}