diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-04-28 21:32:47 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-05-28 13:35:13 +0300 |
commit | 47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f (patch) | |
tree | 61f747d4c5cbaaf7a82a2abe4c5bcf94fd166a4a /drivers/net/wireless/iwlwifi/pcie | |
parent | 1899e114822273636fb96c76a9567cf9cfc1dba6 (diff) | |
download | blackbird-obmc-linux-47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f.tar.gz blackbird-obmc-linux-47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f.zip |
iwlwifi: pcie: simplify return value
This was spot by Coccinelle.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/trans.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index 5c523a7d54f7..a341ed90f8a8 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -973,12 +973,8 @@ static int iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans, return ret; /* load to FW the binary sections of CPU2 */ - ret = iwl_pcie_load_cpu_sections_8000(trans, image, 2, - &first_ucode_section); - if (ret) - return ret; - - return 0; + return iwl_pcie_load_cpu_sections_8000(trans, image, 2, + &first_ucode_section); } static int iwl_trans_pcie_start_fw(struct iwl_trans *trans, |