[PATCH net-next] net: qcom/emac: fix unused variable

2018-05-29 Thread YueHaibing
When CONFIG_ACPI isn't set, variable qdf2400_ops/qdf2432_ops isn't used. drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:284:25: warning: ‘qdf2400_ops’ defined but not used [-Wunused-variable] static struct sgmii_ops qdf2400_ops = { ^~~

[PATCH net-next] net: qcom/emac: fix unused variable

2018-05-29 Thread YueHaibing
When CONFIG_ACPI isn't set, variable qdf2400_ops/qdf2432_ops isn't used. drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:284:25: warning: ‘qdf2400_ops’ defined but not used [-Wunused-variable] static struct sgmii_ops qdf2400_ops = { ^~~