net: hns3: fix compile warning without CONFIG_RFS_ACCEL
authorJian Shen <shenjian15@huawei.com>
Tue, 28 May 2019 09:02:51 +0000 (17:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 00:39:00 +0000 (17:39 -0700)
commit4c1522765ca84e45d147557bf7f19e85e40c81e0
tree09941bf76c00a1fe0e0d970bcf83b785b63a01d6
parent66350023d57560b2ead168af098fc507e58d8e6a
net: hns3: fix compile warning without CONFIG_RFS_ACCEL

The ifdef condition of function hclge_add_fd_entry_by_arfs() is
unnecessary. It may cause compile warning when CONFIG_RFS_ACCEL
is not chosen. This patch fixes it by removing the ifdef condition.

Fixes: d93ed94fbeaf ("net: hns3: add aRFS support for PF")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c