]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: hns: remove unnecessary !! operation in hns_mac_config_sds_loopback_acpi()
authorYonglong Liu <liuyonglong@huawei.com>
Tue, 23 Mar 2021 07:41:08 +0000 (15:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 19:07:21 +0000 (12:07 -0700)
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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c

index 173d6966c1a3b3c60d4b77adc8a16afff9e3f3dd..325e81d30cfdecc6b32b383180e34d91a59d22de 100644 (file)
@@ -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;