From patchwork Thu Jun 15 08:40:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Ming X-Patchwork-Id: 13280892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C86C4EB64D9 for ; Thu, 15 Jun 2023 08:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244439AbjFOIm3 (ORCPT ); Thu, 15 Jun 2023 04:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244229AbjFOIl6 (ORCPT ); Thu, 15 Jun 2023 04:41:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4228630D6; Thu, 15 Jun 2023 01:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S1DLDP1JXbyfZqapiSrzPKZ+taFALgne8KnbvVZWPdxsyFMM8e+WemVk+TI0DE+SeFotUGzYOaWelNg+trp9jYVsLgtDMBfuO9Ceh0J8p55zTxQzdfPesYzeG/PrNFK0CuYSqN4jES+2xC20qBgYEpbSCURD59/yn+QhDKovgvu7bZ8w/BYUou9O8r1lgqdWp82hGC3Wi+19mKp0QtsCnpvGhktMsbQxLHXhSl5DZW6/sgL1dNFDh4bklg4jzdPaIRzdr/1dhws82pTMsF1bbVHd1RFBPfnSr98IjLaafvBnnq4SMjEddHr7FRFIx56L0gy59H+mIu/ZVM0809L9yw== 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=fktDrnNUmhQqThz0W3Jtb3KT+NRL73EOo2ys2DK1Xto=; b=NTi8U5xn1IviruMlHpa1LmL9CeG6MSBFKd5NfOi4sA863PHiDrgWjNMOz+kYE6PDKiQsq0hk3nr6FaO1Cr6O+H2l2elTPa/mssQf2MO1bV5Arcg2Mo1LH79QMmSRM66dPnM+zet5dgWqLcd5YuGwupy7LjOkKwTZb4aPH7P7alFPvkznSGoBHlw3V+RIIU7HNcKKcqRSMyUaikHamwHJjFjI7cXmC2PQfR/7tAV+fye60654XbxgBuk/yOTB69F8OROUcFbZOQolj9kDWxhRRSP/Y6rC/aac9NhQ6ngghJcS3LYkLcIm5LsAxEoCWHyvBxAL0FGLbJqFLWUJAGyn+A== 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=fktDrnNUmhQqThz0W3Jtb3KT+NRL73EOo2ys2DK1Xto=; b=Nsc4s/kAZnZELIkcexQAxdHygS7GGiFi+epnHcP1sGqkPGtq2VdeX5Acl1vUEi9qWcZdRw9PI+Ybdokg5Xb1b0QWb6xlfEvEQ3sWVOXKh4/oGkhzsWm3kFaa6ap602+wB+SvS24/1USnNI9/R98tjgSKMsQPlTrpJF2KPqSTt1yGWKHze+4sPOogj0yhCqgKOwP3vodrinX8iYqOvLBgqTodY3hrPik8mjCdcghkdbVA/4K9eN9V4YAuNUlcSBViaryVef0un9HKfOpEIWzHr0kqxERjCuGmK/ei0w7FUiXsnEyDDQrchfJrBW97cixC0PbSf7BWPq/oNyzfD8S7vg== 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 SEYPR06MB6203.apcprd06.prod.outlook.com (2603:1096:101:c4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Thu, 15 Jun 2023 08:41:24 +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.6477.037; Thu, 15 Jun 2023 08:41:24 +0000 From: Wang Ming To: Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Wang Ming Subject: [PATCH v1] drivers:net:ethernet:Remove unneeded code Date: Thu, 15 Jun 2023 16:40:56 +0800 Message-Id: <20230615084110.7225-1-machel@vivo.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: TY2PR0101CA0031.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::17) To SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3743:EE_|SEYPR06MB6203:EE_ X-MS-Office365-Filtering-Correlation-Id: fea87d7d-b94a-48a4-f5a1-08db6d7c4d2b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: krCU7+QfCqkpykwVD+qe+EBj91M4Qhcf9M6tQUBeQ8SORPo8CreDuCJuR/dfVwgETKeczZ1sre2gko7b1oAuusmJS7SkroX6LamJM7vTR3jghUXvpxyuGOIf9SfwIQ4OKUSXqkA95Kj3WZpCc5bPZJL3W2RWFbnKKh3Wq04edy+RPPGeAWfYv+Z8IiBcWl4YaqxXI6lOBha/lBssOgFf3O81SEscZLtghOS/eFN9XEmO1bDhqCJbN1aA120Qa4IgSDso5JOJZM8NTtqRMBUT26Zm5bl7a8UiIg0m+89Mf6rNkMyWCWJmG8hOXCJzTUiwrVQPHZQ2afoFrTTrUfoOy6XcSnbwoxHiQAecALfLnkGNoPORHvkv6k+pGwWjIrZuGgeSnR3mR8Y35MC/IR90JySV8S6fxskpd4RHsB3c4GXdAvc/XfTzNfJM1RycUrO2LmwKRl+lt2K/5fxoG8idQy0yOKlANVtB1+07duMbNUbiLayVEN5rAsh73OsvCgvmNlXJ4ahb5wMn3zW2DxNKbFss3sJgDoQyJjHD76JS19naR5T9Q53FxXSurQHqbkbzOEDJgu29c+fVt3LxgWgLgUlfY9E8wsDJQDZ1QK6ndKH1kTFAbzC8PUnV/p5ijRR7 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)(366004)(376002)(346002)(136003)(39860400002)(396003)(451199021)(83380400001)(66556008)(66476007)(1076003)(26005)(6506007)(107886003)(6512007)(52116002)(6666004)(8676002)(2616005)(186003)(110136005)(8936002)(478600001)(6486002)(86362001)(5660300002)(2906002)(38100700002)(4326008)(41300700001)(38350700002)(36756003)(316002)(66946007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BJ+uYrE9Dp42VtB+y5uXbID2pBica+lo8iPnd9rDWRudFjWNj47fXICddQVV/Yg/HoWnEmz40AgR3GXTuHaP7pJ+7SyXxiRMZFJVw+7P1ZcldhDncHuCjlizAMGC/ftXnMC7BgS0RHi1j0Xxmn3Xynpd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q7PzE3/c7kM+xE6zC4Y/qe1w0MX6oiWN59RrqBPOaJ/sXu/bbLb8JC+9BmdePIVLKSt/v6dckytY5tdg0IllNzdYI3SFZcCH/BXusonvvBH65zUxJtiiT2Kcbet/UGTtl8LPYysKTn4vl0P6/l4Mx0Wtoc2VN7oqYnvU4VzS7ju2gJb+EOW69Yu/a0asEbQ37lFyKCWleltPS0bEa+YKWObi5CX1T72D/vt8cFPBBwLaTGgZmeq9NRiyBPed50ol/KbLj6+3SUKO+2oYui3mzJBF0aMCX08jJBJOghB4lsgVf+VHklVt4qAyQq4L4jtJB7AOB54G8jrGW6Galty2mmI9bF2BMo8wCMlSsu+/Hs5MBthytBgXGo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fea87d7d-b94a-48a4-f5a1-08db6d7c4d2b X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3743.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2023 08:41:24.5410 (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: kXhdq5heOGGaj048uYxSYWap5LLxoVEmKYfFkkiu5BFqaG5/4cinKFtTxaJOK4lU/02qiQE0KSm6illLf/TSSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6203 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Remove unused helper code. Fix the following coccicheck warning: drivers/net/ethernet/mellanox/mlx5/core/eswitch.c:808:34-35: WARNING: unneeded memset. Signed-off-by: Wang Ming --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index 31956cd9d..ae0939488 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -805,7 +805,6 @@ static int mlx5_esw_vport_caps_get(struct mlx5_eswitch *esw, struct mlx5_vport * hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); vport->info.roce_enabled = MLX5_GET(cmd_hca_cap, hca_caps, roce); - memset(query_ctx, 0, query_out_sz); err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, MLX5_CAP_GENERAL_2); if (err)