diff options
author | Guojia Liao <liaoguojia@huawei.com> | 2019-09-05 16:31:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-06 16:20:34 +0300 |
commit | 1483fa4946435d6b7cac53096922fa85f9886647 (patch) | |
tree | 23b8fb49b661cabf025391292bd0407d28471b70 /drivers/net/ethernet/hisilicon | |
parent | b7cf22b74a3f58933d652237503f4e53fb3791f9 (diff) | |
download | linux-1483fa4946435d6b7cac53096922fa85f9886647.tar.xz |
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')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 |
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 |