net: hns: remove unnecessary !! operation in hns_mac_config_sds_loopback_acpi()
The !! operation of variable en in hns_mac_config_sds_loopback_acpi() is redundant, so remove it. Signed-off-by: Yonglong Liu <liuyonglong@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dcc683b81f
commit
4a4ec57c06
|
@ -686,7 +686,7 @@ hns_mac_config_sds_loopback_acpi(struct hns_mac_cb *mac_cb, bool en)
|
|||
obj_args[0].integer.type = ACPI_TYPE_INTEGER;
|
||||
obj_args[0].integer.value = mac_cb->mac_id;
|
||||
obj_args[1].integer.type = ACPI_TYPE_INTEGER;
|
||||
obj_args[1].integer.value = !!en;
|
||||
obj_args[1].integer.value = en;
|
||||
|
||||
argv4.type = ACPI_TYPE_PACKAGE;
|
||||
argv4.package.count = 2;
|
||||
|
|
Loading…
Reference in New Issue