Commit c353af83 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: r8822be: Remove some dead code

The code found inside an #ifdef CONFIG_RTL_DEBUG ... #endif section
is left over from debugging of the original driver, and should be
deleted.

Reported by: Andreas Ziegler <andreas.ziegler@fau.de>
Signed-off-by: default avatarLarry 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5598e55a
...@@ -386,26 +386,6 @@ static void deinit_priv(struct rtl_halmac *halmac) ...@@ -386,26 +386,6 @@ static void deinit_priv(struct rtl_halmac *halmac)
u32 count, size; u32 count, size;
count = HALMAC_FEATURE_ALL + 1; count = HALMAC_FEATURE_ALL + 1;
#ifdef CONFIG_RTL_DEBUG
{
struct submit_ctx *sctx;
u32 i;
for (i = 0; i < count; i++) {
if (!indicator[i].sctx)
continue;
RT_TRACE(
rtlpriv, COMP_HALMAC, DBG_LOUD,
"%s: <WARN> %s id(%d) sctx still exist!!\n",
__func__, RTL_HALMAC_FEATURE_NAME[i],
i);
sctx = indicator[i].sctx;
indicator[i].sctx = NULL;
rtl_mfree((u8 *)sctx, sizeof(*sctx));
}
}
#endif /* !CONFIG_RTL_DEBUG */
size = sizeof(*indicator) * count; size = sizeof(*indicator) * count;
kfree((u8 *)indicator); kfree((u8 *)indicator);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment