aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3
diff options
context:
space:
mode:
authorGuojia Liao <liaoguojia@huawei.com>2019-09-05 21:31:40 +0800
committerDavid S. Miller <davem@davemloft.net>2019-09-06 15:20:34 +0200
commit1483fa4946435d6b7cac53096922fa85f9886647 (patch)
tree23b8fb49b661cabf025391292bd0407d28471b70 /drivers/net/ethernet/hisilicon/hns3
parentnet: hns3: add client node validity judgment (diff)
downloadlinux-dev-1483fa4946435d6b7cac53096922fa85f9886647.tar.xz
linux-dev-1483fa4946435d6b7cac53096922fa85f9886647.zip
net: hns3: remove explicit conversion to bool
Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unnecessary. Signed-off-by: Guojia Liao <liaoguojia@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index 76e1c84c5776..dde752f4e3bd 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -6174,7 +6174,7 @@ static void hclge_enable_fd(struct hnae3_handle *handle, bool enable)
bool clear;
hdev->fd_en = enable;
- clear = hdev->fd_active_type == HCLGE_FD_ARFS_ACTIVE ? true : false;
+ clear = hdev->fd_active_type == HCLGE_FD_ARFS_ACTIVE;
if (!enable)
hclge_del_all_fd_entries(handle, clear);
else