From: Emmanuel Grumbach Date: Tue, 28 Apr 2015 18:32:47 +0000 (+0300) Subject: iwlwifi: pcie: simplify return value X-Git-Tag: v4.2-rc1~130^2~139^2^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47dbab263db205f6bbc6bd10ba45cfb4ad75ec2f;p=platform%2Fkernel%2Flinux-exynos.git iwlwifi: pcie: simplify return value This was spot by Coccinelle. Signed-off-by: Emmanuel Grumbach --- 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,