From patchwork Wed Jun 14 13:13:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Ming X-Patchwork-Id: 13280040 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FF2F64F for ; Wed, 14 Jun 2023 13:15:17 +0000 (UTC) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2093.outbound.protection.outlook.com [40.107.255.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7F66212A; Wed, 14 Jun 2023 06:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XRG9AOm+txsvbDJCWU6rthLI+OkxwunIBdwGR4PADiG7Vo+FllGqEhFB1Hh3XRr1pw3Z1NC2tkimexu3bOd3yBP3lomLSIZgpUfJfSB1Nq/4vjsZg4H4P1RW9Fvqq09+fAmIuyEPoMVDYLCGxYwgTky5fxfFbRdLJm9DeqClsv0nypuZAbR/yiRJ9zOaPSWN31RKxS70kwKHkickqigq/X9CE5ECrRta7VCq9GeRvsOVoxfiEwUa8akY54amltz9BgT/ruglxsSXUcULeAVdYEQNqdXaP4NPH8RK+Tme9+oAs9A+S1WN56x4apMMvpNvG56a1WnBgJYM6Lbz7/hG4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=it1aEpwD6cSUn26B4plifmRXAsc5ho6Dbm2LpWdUnLo=; b=cYvU2SZN7G4jfzs04nEUVJETWGlrMhfeLk8TxzQTQ29r37TXhZztkEVFHM7So09mKRA4TW6/cM0QMtzJSbK2fknPKcDfw4XPJuRCg5C7P8ypm83EStO9pENWkhn9f7vgQlLuoergiKWRO0h+5vQLLrhBvUPnaOYdmlMXhgqYhmmTqJ/ub1Q6vghq19KRJ5swxoyyyw93HA351u+O2ckjiyEkd1ZJcMvZCtH/Z3zlt2Pzl5l1vN4r+Lg/lZIbno0PMJUtBrQSP9tHb74LzEFhHKY02BrtsYnoNUeREH8IOHKn2yAnvOQB9gbg3BWBqw7IvBpLjEw7xPotmQlrVtncFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=it1aEpwD6cSUn26B4plifmRXAsc5ho6Dbm2LpWdUnLo=; b=pvsAQyFnDGFGDSF+sJkgGyWbIM2i1AAvPGqNDNhruSH1i3Za+AvS0rQHusD1VSXSuY8fwDlGn6vWEI8R9tG85rQDQ3Kl1Zqi+habbjrcUApWMDqjvsQcCFyiVDWsbHOezbVbxIptc0ZnuPzyqlApF3B6jLRY4bDMv7BMGkJaEV1MrhPmX6hS2GXO2SwbmNptTCBSydbiDolVmCBni3sT/RUvpmluHvt83z23l2zf0AVXuuisFQKzv2kFasRw8XCt8nxROc2C0owePNuzDFl1BwBMC0Wp8rsPvuuytmZYsn4YboxcZlubHFH/E5h0KsTo4TUuK7Ei3uXH7TTINg3w2w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) by TYZPR06MB5249.apcprd06.prod.outlook.com (2603:1096:400:1fb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.39; Wed, 14 Jun 2023 13:14:23 +0000 Received: from SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::7dfd:a3ed:33ca:9cc8]) by SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::7dfd:a3ed:33ca:9cc8%6]) with mapi id 15.20.6455.045; Wed, 14 Jun 2023 13:14:23 +0000 From: Wang Ming To: Jiawen Wu , Mengyuan Lou , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wang Ming , Stephen Rothwell , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com Subject: [PATCH v1] drivers:net:ethernet:remove repeating expression Date: Wed, 14 Jun 2023 21:13:54 +0800 Message-Id: <20230614131408.3097-1-machel@vivo.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: TYAPR01CA0059.jpnprd01.prod.outlook.com (2603:1096:404:2b::23) To SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3743:EE_|TYZPR06MB5249:EE_ X-MS-Office365-Filtering-Correlation-Id: 40c1d1fd-3e19-4f35-a65f-08db6cd945aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i1pgL+REtID+Qd46LBtZMk59M5cF6yxS0iuKCcfq96xYjj3CCXu5tieacS9uAyn7UP1BU5tvk69zGFeFkHvg8zAbfTaRM17Qz/Ax8CUl+rvUZijAmoy7d7xDNXiMk8K1vr7MIhM4rkLtODHGVmSDMEZ8If4ML7ULd5YSZQyK6rgBSXStUB0SJ1vBIx7de1MUgS/7RONfhZYmFbYZ1V2L4OB3/cnLX0BWwwbUtd2bNBKdlyV+LYwXzLYAxg9EggTcjKjXK6DbyIC7HUEOsvXvw3J+Hvgf7ZYTFVM5uFDxK6UywTg7TWneDthHS/zu7Xq5l7kbP6c0iVSFzAcMkM2i029a62FMwu8f1ECMaUEUhpPJ7Z/h2eHRsDxcHd1N2JxU9sqBCZnNSn0uT60IliWFz0ve4HmSNPQlQLBG5yUBhTtT5Rw3CJdBnHvcREl3uuw+sKGfr241veekjW9ZAS2FThoIWcZvFroIgaq+81jvjOyjE3cVdewn6yJcO9aQ8a6yeh1GaBitBjMxsndz4n3NF0iYImSCMxohMwr4Yq4J0yWgIGY6VwJVT2qDCty0TD3Unhrly7dSWxB7fZNM1IDVwDOlaS2udPGvtt2rnkiwU61PE5sCWDClQEWimdSITm14UEnfqWjrzH7TAEeyaH20Cw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3743.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(136003)(366004)(39860400002)(396003)(451199021)(66556008)(66476007)(66946007)(6666004)(316002)(107886003)(110136005)(478600001)(4326008)(86362001)(36756003)(6506007)(6512007)(1076003)(26005)(186003)(83380400001)(41300700001)(8676002)(8936002)(2906002)(5660300002)(6486002)(52116002)(921005)(2616005)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 30EsM6kV7esIa1VCSr7nZEK9iTL2F2TQhN6ESrN+JvMv8T7CJxiQKribgP4KwUuIv1+XK2jlJgjtpPgR3eC31qcXQ2U0mAVt4xfOnPF4o3EHZRwZ3uOu/0N7xlMRbWRYwccFg+4y2s3jO7ts66RDL8HY78Z1Zb2KK+PbWbRn4UBXrAVap8Bubub2VbON6IRGOw6/o6DGNMGRYiw0zh4k68ApN8WtmRbms552zYEJz9Zj3W+1jN/WJPxjb+3A7uGwkZx3QHjDHZKv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IHAhbP3VE0SLzBvb2CxQqTRM4NC1URoNrfluhkjut/mg1ekBPgxqc7BZPE1yDsJPCE6AvwkPAtFdmJ/AXdBUMno0/J5AMCWSvOBRh/cAQFzBKl0/ZfttEPqeaCOjTacyUIArYyisnNwkOw+X6KvK2hAsB2/k7h7vWkcjOg7x8GBjmqgTdmMR/450xaSUXChUsRQvpj3OwdbpscqhXtozF+OsSh0/3wMiHVEY0kh55MTXGEaoh1pXzRWmJwZUW232tBbE7b X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40c1d1fd-3e19-4f35-a65f-08db6cd945aa X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3743.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 13:14:23.7389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: omMNUrpBDm2AN+V9VnbzxuxeyndvXvNnrdUp/Y2O5NH1urhUU/gnMyroClwWF2eqxTN29JCQX9hp7oIkq/J42g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5249 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Identify issues that arise by using the tests/doublebitand.cocci semantic patch.Need to remove duplicate expression in statement. Signed-off-by: Wang Ming --- drivers/net/ethernet/wangxun/libwx/wx_hw.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/ethernet/wangxun/libwx/wx_hw.c b/drivers/net/ethernet/wangxun/libwx/wx_hw.c index 39a9aeee7..6321178fc 100644 --- a/drivers/net/ethernet/wangxun/libwx/wx_hw.c +++ b/drivers/net/ethernet/wangxun/libwx/wx_hw.c @@ -1511,7 +1511,6 @@ static void wx_configure_rx(struct wx *wx) psrtype = WX_RDB_PL_CFG_L4HDR | WX_RDB_PL_CFG_L3HDR | WX_RDB_PL_CFG_L2HDR | - WX_RDB_PL_CFG_TUN_TUNHDR | WX_RDB_PL_CFG_TUN_TUNHDR; wr32(wx, WX_RDB_PL_CFG(0), psrtype);