forcedeth: Use dev_get_drvdata where possible
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 11:26:48 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 18:44:46 +0000 (11:44 -0700)
commitdfa56f83153f08c73e7adfacefd93750da2266ad
tree099ab1524291a0a21721f82b36d0bea7264e74e7
parent7bdb9234952b08b1f86927eab4adbf6609d4444a
forcedeth: 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/nvidia/forcedeth.c