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)
commit3136dc602950d4c294bd82991b4eca4b626c87f3
tree33f6d5fe5962c555a081d8dbd07530807f5fbef9
parent921f9c587013b5b216d9d3802cd3456b11c86524
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