Skip to content

Commit

Permalink
iwlwifi: don't warn if transport's allocation failed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Nov 14, 2012
1 parent d18aa87 commit dbeca58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbeca58

Please sign in to comment.