]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f2c8dd28a93c7f82d0c2a98e2cc1022eacf32fd
tree09941bf76c00a1fe0e0d970bcf83b785b63a01d6
parent74f7b57e45ae832aca8633d942a34215cd2d9115
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: 311b0277f0f2 ("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