iwlwifi: fix IDI compilation
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 23 Feb 2012 08:18:00 +0000 (10:18 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 27 Feb 2012 21:57:24 +0000 (13:57 -0800)
This is a fixup for my:
iwlwifi: kill iwl_bus.h

Please fold them into one patch for upstream

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-pci.c

index 0ce7047..06e0041 100644 (file)
@@ -278,7 +278,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 #ifdef CONFIG_IWLWIFI_IDI
        iwl_trans = iwl_trans_idi_alloc(shrd, pdev, ent);
-       if (trans == NULL) {
+       if (iwl_trans == NULL) {
                err = -ENOMEM;
                goto out_free_bus;
        }