From: Johannes Berg Date: Tue, 28 Feb 2017 15:42:10 +0000 (+0100) Subject: iwlwifi: pcie: remove superfluous trans->dev assignment X-Git-Tag: v4.12-rc1~129^2~65^2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0fa818e6c5f48bfbc3dfe1317754390b88446c1;p=platform%2Fkernel%2Flinux-exynos.git iwlwifi: pcie: remove superfluous trans->dev assignment 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 Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index 5120fbc..c551ba8 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -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);