r8169: improve a check in rtl_init_one
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 25 Sep 2018 05:59:36 +0000 (07:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Sep 2018 17:28:03 +0000 (10:28 -0700)
commita0456790fe57a23a30c6a7697f0833d33f10747a
tree22c7ec6853326cb8fa8d9f75ae901ec9ce3e6e50
parentde20e12f3faf86581e82b2826d87fbc2feec2b50
r8169: improve a check in rtl_init_one

The check for pci_is_pcie() is redundant here because all
chip versions >=18 are PCIe only anyway. In addition use
dma_set_mask_and_coherent() instead of separate calls to
pci_set_dma_mask() and pci_set_consistent_dma_mask().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c