i40e: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 14:15:51 +0000 (22:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:02:42 +0000 (13:02 -0700)
commit1c8aa7b1f15bff91a9abef3f083770793ea2f773
tree0bae1721c778f702d1bbf175693adeca73231bea
parent7f53be6f6b8d339bfce34514e23bb8eb7057648c
i40e: Use dev_get_drvdata

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/i40e/i40e_main.c