rtl8192c: Do not log firmware load message unless actually done
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 30 Nov 2011 16:58:14 +0000 (10:58 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Dec 2011 21:05:25 +0000 (16:05 -0500)
A previous commit fixed a problem whereby the rtl8192c driver loaded the
firmware from disk many times; however, the log message was not moved.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c

index fa393dfe136cbcf07ccac43a1fb8ca472cea33f0..931d97979b04e3bcd26dbdfa1fdfa390be48db6e 100644 (file)
@@ -262,10 +262,10 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
        u32 fwsize;
        enum version_8192c version = rtlhal->version;
 
-       pr_info("Loading firmware file %s\n", rtlpriv->cfg->fw_name);
        if (!rtlhal->pfirmware)
                return 1;
 
+       pr_info("Loading firmware file %s\n", rtlpriv->cfg->fw_name);
        pfwheader = (struct rtl92c_firmware_header *)rtlhal->pfirmware;
        pfwdata = (u8 *) rtlhal->pfirmware;
        fwsize = rtlhal->fwsize;