]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: drop redundant check in _rtw_free_mlme_priv
authorVihas Makwana <makvihas@gmail.com>
Wed, 27 Apr 2022 16:57:49 +0000 (22:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 21:19:15 +0000 (23:19 +0200)
commita534037cdbc3bdf8344e386b02aa941e417d4230
tree33f6d5fe5962c555a081d8dbd07530807f5fbef9
parent82617257ae6d9f84284d2dc93f19f340032b0489
staging: r8188eu: drop redundant check in _rtw_free_mlme_priv

There's a NULL check on pmlmepriv in rtw_mlme.c:112 which makes no sense
as rtw_free_mlme_priv_ie_data() dereferences it unconditionally and it
would have already crashed at this point.
Remove this redundant check.

Signed-off-by: Vihas Makwana <makvihas@gmail.com>
Link: https://lore.kernel.org/r/20220427165748.10584-1-makvihas@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c