aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2017-08-30 15:43:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 12:29:33 -0400
commitc353af8343c37386161167ae7fbe6747f6be580c (patch)
treef5b93fa3fd6074c35b1beae9da13708948f512a1
parent5598e55a8dc647c4c4ea474351f85b93d9e9dd68 (diff)
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: 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>
-rw-r--r--drivers/staging/rtlwifi/halmac/rtl_halmac.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/staging/rtlwifi/halmac/rtl_halmac.c b/drivers/staging/rtlwifi/halmac/rtl_halmac.c
index 031bf2c6078f..2b1c5fae64ef 100644
--- a/drivers/staging/rtlwifi/halmac/rtl_halmac.c
+++ b/drivers/staging/rtlwifi/halmac/rtl_halmac.c
@@ -386,26 +386,6 @@ static void deinit_priv(struct rtl_halmac *halmac)
386 u32 count, size; 386 u32 count, size;
387 387
388 count = HALMAC_FEATURE_ALL + 1; 388 count = HALMAC_FEATURE_ALL + 1;
389#ifdef CONFIG_RTL_DEBUG
390 {
391 struct submit_ctx *sctx;
392 u32 i;
393
394 for (i = 0; i < count; i++) {
395 if (!indicator[i].sctx)
396 continue;
397
398 RT_TRACE(
399 rtlpriv, COMP_HALMAC, DBG_LOUD,
400 "%s: <WARN> %s id(%d) sctx still exist!!\n",
401 __func__, RTL_HALMAC_FEATURE_NAME[i],
402 i);
403 sctx = indicator[i].sctx;
404 indicator[i].sctx = NULL;
405 rtl_mfree((u8 *)sctx, sizeof(*sctx));
406 }
407 }
408#endif /* !CONFIG_RTL_DEBUG */
409 size = sizeof(*indicator) * count; 389 size = sizeof(*indicator) * count;
410 kfree((u8 *)indicator); 390 kfree((u8 *)indicator);
411 } 391 }