staging: r8188eu: remove null pointer checks before kfree
authorMichael Straube <straube.linux@gmail.com>
Wed, 18 Aug 2021 08:58:09 +0000 (10:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 10:45:45 +0000 (12:45 +0200)
commit39876a013b3e16e7c78e3638e674a18df999069f
tree9b3d88a858a5ef8eb8b4dd08dd86ae4c0b442c31
parent7972067ad028ed5182d2b6663396de9dc6c629a6
staging: r8188eu: remove null pointer checks before kfree

kfree(NULL) is safe, so remove unnecessary null pointer checks before
calls to kfree. Reported by checkpatch.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210818085809.31451-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ap.c
drivers/staging/r8188eu/core/rtw_cmd.c