staging: r8822be: Simplify deinit_priv()
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 30 Aug 2017 19:43:13 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:29:33 +0000 (18:29 +0200)
commita470ad21f980c1b642bf17eeda8e584b5566b701
treedd5001fa1aefac79051a4f3001fff180226e1c5e
parentc353af8343c37386161167ae7fbe6747f6be580c
staging: r8822be: Simplify deinit_priv()

Now that the extraneous debugging code is removed, routine deinit_priv()
clearly contains code that serves no useful purpose.

A null test before a call to kfree() and a spurious cast are also removed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/halmac/rtl_halmac.c