]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5a2a99c00726566f52fb1b977ed0d70f648daba
tree22c7ec6853326cb8fa8d9f75ae901ec9ce3e6e50
parent78532de8c949843396bcd8ed3182948efdecb4e0
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