diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-11-13 13:19:33 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-14 11:07:19 +0100 |
commit | dbeca583f9b8e35aa08279b81d5340dac3a60aff (patch) | |
tree | 834aed3e49eb6c6fc57aa43af10a434288ac29aa /drivers/net/wireless/iwlwifi/pcie/trans.c | |
parent | d18aa87fbfe80f33076942d11f19c9d813e835b1 (diff) |
iwlwifi: don't warn if transport's allocation failed
The allocation failure will already be very verbose.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/trans.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index 3adbf4c21ff..a1b9d07b9d0 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -2126,7 +2126,7 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev, trans = kzalloc(sizeof(struct iwl_trans) + sizeof(struct iwl_trans_pcie), GFP_KERNEL); - if (WARN_ON(!trans)) + if (!trans) return NULL; trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); |