iwlwifi: pcie: remove superfluous trans->dev assignment
authorJohannes Berg <johannes.berg@intel.com>
Tue, 28 Feb 2017 15:42:10 +0000 (16:42 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 19:48:37 +0000 (22:48 +0300)
This struct member is already assigned in the previous
call to iwl_trans_alloc(), so assigning the same value
again is superfluous - remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 5120fbcfcaf2c788fdc302cd1d935f7a746911f6..c551ba8809dbd7ce0ec605f20e122fccde90735e 100644 (file)
@@ -2976,7 +2976,6 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
         * PCI Tx retries from interfering with C3 CPU state */
        pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00);
 
-       trans->dev = &pdev->dev;
        trans_pcie->pci_dev = pdev;
        iwl_disable_interrupts(trans);