fm10k: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Tue, 23 Jul 2019 14:15:33 +0000 (22:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:02:41 +0000 (13:02 -0700)
commit7f53be6f6b8d339bfce34514e23bb8eb7057648c
treef978629589da7a6f6628ad882caeb8695a1459cd
parentee2e80c194628a0ba5cd0a5c37b46fa136e11004
fm10k: 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/fm10k/fm10k_pci.c