e1000e: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 14:15:13 +0000 (22:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:02:41 +0000 (13:02 -0700)
commitee2e80c194628a0ba5cd0a5c37b46fa136e11004
tree9f86aa9c4757b76fc79ad8c56514673fef6d80d8
parentf521eaa9d2ef6d85bc6c318148f019e9f40fc344
e1000e: Use dev_get_drvdata where possible

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/e1000e/netdev.c