mbox series

[0/2] Bluetooth: mgmt: remove useless NULL checks

Message ID 20240301074824.1259409-1-r.smirnov@omp.ru (mailing list archive)
Headers show
Series Bluetooth: mgmt: remove useless NULL checks | expand

Message

Roman Smirnov March 1, 2024, 7:48 a.m. UTC
Svace reports NULL check after dereference in
mgmt_set_connectable_complete() and add_ext_adv_params_complete().
The following patches remove these checks.

Found by Linux Verification Center (linuxtesting.org) with Svace.

Roman Smirnov (2):
  Bluetooth: mgmt: remove useless NULL checks in
    mgmt_set_connectable_complete()
  Bluetooth: mgmt: remove useless NULL checks in
    add_ext_adv_params_complete()

 net/bluetooth/mgmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)