summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/realtek/rtlwifi/rtl8192c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2016-12-15 12:23:10 -0600
committerKalle Valo <kvalo@codeaurora.org>2016-12-30 15:54:28 +0200
commitc93ac39da006457fc5b9b74f1505624dd509bf68 (patch)
tree97e03e22e16def4850da2035fa0317b59244e6c1 /drivers/net/wireless/realtek/rtlwifi/rtl8192c
parent02527a73beb344f8f7fff39c04e29a94127b8ee8 (diff)
downloadlinux-stable-c93ac39da006457fc5b9b74f1505624dd509bf68.tar.gz
linux-stable-c93ac39da006457fc5b9b74f1505624dd509bf68.tar.bz2
linux-stable-c93ac39da006457fc5b9b74f1505624dd509bf68.zip
rtlwifi: Remove some redundant code
The symbol DBG_EMERG is no longer used and is removed. In a number of places, the code has redundant messages. For example, if the failure for the firmware to run is logged, it is not necessary to log that the firmware has been started. In addition, extraneous braces are removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rtl8192c')
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c
index f3fb31b9d9dc..433ab7f33acf 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c
@@ -238,12 +238,8 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
_rtl92c_enable_fw_download(hw, false);
err = _rtl92c_fw_free_to_go(hw);
- if (err) {
+ if (err)
pr_err("Firmware is not ready to run!\n");
- } else {
- RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
- "Firmware is ready to run!\n");
- }
return 0;
}