]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: don't panic if pcie transport alloc fails
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 4 Jun 2015 06:51:11 +0000 (09:51 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 8 Jul 2015 02:18:03 +0000 (05:18 +0300)
commit1c1d4874f98f4acb7288c8501006a5ea318499c6
tree7fe52f1d3080681d794b06ae8b7615dc699a4dbb
parentc30a6cb2166c4ae1f211f721314ed295b5b53303
iwlwifi: pcie: don't panic if pcie transport alloc fails

iwl_trans_pcie_alloc needs to return a non-zero value
if it fails. Otherwise the iwl_drv_start will think that
the allocation succeeded.
Remove the duplication of err and ret variable and use ret
which is the name we usually use in other places of the
driver.

Fixes: c278754a21e6 ("iwlwifi: mvm: support family 8000 B2/C steps")
CC: <stable@vger.kernel.org> [4.1]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c