summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-04-28 20:32:47 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-05-28 12:35:13 +0200
commit47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f (patch)
tree61f747d4c5cbaaf7a82a2abe4c5bcf94fd166a4a
parentiwlwifi: bump API to 14 (diff)
downloadlinux-47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f.tar.xz
linux-47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f.zip
iwlwifi: pcie: simplify return value
This was spot by Coccinelle. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/trans.c8
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,