ixgbe: introduce a helper to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 May 2018 12:08:13 +0000 (20:08 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Jun 2018 17:21:13 +0000 (10:21 -0700)
commite9c721837da2a73798243ded051ff0ffdbc6066b
tree7aa0e3278887d1aa0489442515ccd89eb67feb36
parent7d6446db1bcb1008b84db098f4629664cd8b06a6
ixgbe: introduce a helper to simplify code

ixgbe_dbg_reg_ops_read and ixgbe_dbg_netdev_ops_read copy-pasting
the same code except for ixgbe_dbg_netdev_ops_buf/ixgbe_dbg_reg_ops_buf,
so introduce a helper ixgbe_dbg_common_ops_read to remove redundant code.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c