diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2017-08-30 22:43:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-31 19:29:33 +0300 |
commit | c353af8343c37386161167ae7fbe6747f6be580c (patch) | |
tree | f5b93fa3fd6074c35b1beae9da13708948f512a1 /drivers/staging | |
parent | 5598e55a8dc647c4c4ea474351f85b93d9e9dd68 (diff) | |
download | linux-c353af8343c37386161167ae7fbe6747f6be580c.tar.xz |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtlwifi/halmac/rtl_halmac.c | 20 |
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) u32 count, size; 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; kfree((u8 *)indicator); } |