iwlwifi: don't warn if transport's allocation failed
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 13 Nov 2012 11:19:33 +0000 (13:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Nov 2012 10:07:19 +0000 (11:07 +0100)
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>
drivers/net/wireless/iwlwifi/pcie/trans.c

index 3adbf4c..a1b9d07 100644 (file)
@@ -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);