diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2016-12-15 21:23:10 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-12-30 16:54:28 +0300 |
commit | c93ac39da006457fc5b9b74f1505624dd509bf68 (patch) | |
tree | 97e03e22e16def4850da2035fa0317b59244e6c1 /drivers/net/wireless/realtek/rtlwifi/rtl8188ee | |
parent | 02527a73beb344f8f7fff39c04e29a94127b8ee8 (diff) | |
download | linux-c93ac39da006457fc5b9b74f1505624dd509bf68.tar.xz |
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/rtl8188ee')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c index 8f3786353b50..afa784a46634 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c @@ -222,12 +222,8 @@ int rtl88e_download_fw(struct ieee80211_hw *hw, _rtl88e_enable_fw_download(hw, false); err = _rtl88e_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_LOUD, - "Firmware is ready to run!\n"); - } return 0; } |