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)
commitaf3f2f740173f8b5c61dba46f900998c5984ccd9
tree7fe52f1d3080681d794b06ae8b7615dc699a4dbb
parent66337b7c67f6237720ba13f6d41b9d8dbcb59cda
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