diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2021-03-23 15:41:08 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-24 12:07:21 -0700 |
commit | 4a4ec57c0656ad4063775db11ace6d498171364a (patch) | |
tree | bf7ae72d241664bd34294cd90280b5cf421259e1 /drivers/net/ethernet/hisilicon/hns | |
parent | dcc683b81fc466c82830369738cab649a37ef3c2 (diff) | |
download | linux-stable-4a4ec57c0656ad4063775db11ace6d498171364a.tar.gz linux-stable-4a4ec57c0656ad4063775db11ace6d498171364a.tar.bz2 linux-stable-4a4ec57c0656ad4063775db11ace6d498171364a.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c index 173d6966c1a3..325e81d30cfd 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c @@ -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; |