Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1483fa49 authored by Guojia Liao's avatar Guojia Liao Committed by David S. Miller
Browse files

net: hns3: remove explicit conversion to bool



Relational and logical operators evaluate to bool,
explicit conversion is overly verbose and unnecessary.

Signed-off-by: default avatarGuojia Liao <liaoguojia@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b7cf22b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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