Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp173013rwi; Wed, 2 Nov 2022 10:32:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7BcLk+9uI2vl7qXOTPfGS1pWBztvhy71ch0AiTc2OGjJXS/wJZHnvt9G5E6QKfrLBXCSNB X-Received: by 2002:a63:188:0:b0:43c:22e9:2d10 with SMTP id 130-20020a630188000000b0043c22e92d10mr22635448pgb.12.1667410376150; Wed, 02 Nov 2022 10:32:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667410376; cv=pass; d=google.com; s=arc-20160816; b=mB4/dhglc94Zmw9vu8whAybZIoV7vsH3XKhH8viAex4IDoBpuolI3JWk0jDU/r7FXD CD8WUIdsg1o8cMcV6G5/LS1YSnxlbviadQItw7ukSgKWA9ia/iaOCAK4E9nRfZhSISbz xBllFo28yTcRyOcr2D1yReNY9gpyknXc8OVfrz2ijh6bzgFNb11yHNGtPox03wCC3GIx wZD4Kg3/Vl3fHswa7MUW4C5M8j35Otwm1CpJha3XMW40lNXtZ0bM8W2mvyW2mXnJ24OI h7kSUkMgviLICpazjFzYsNNEIciZuncmpWdbvJzoqydB/bNHEL3joV2kE4R9B/e3+xk6 /QNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=L4hv6wzZf6gzZKh07z0q40mh8/pQOq3J+cU8J6NWKbQ=; b=FXdPt3kM9wiBzP52wZifcNlscExZ1kO7Au+Ej+62pJJOJL/uTlcnbnk0oqJjhRK/BB AAh5gfZdsErF3MXsw5d24Sy7l4D3HU8wQ2j4p7vDfCtISfshNHgSprUE+v7ZiVUVmkZk rkKvS8MOLRdW/U130nfX/Ili6xny38srpJJpdXfoCCks/Ep5MPJeYI/TKDI1UiPppMGk PJQSpq20x4fG7424EUq+/b6yRrQBHBM2Rnne6MsHUD6lTX4IzbWvI95vq72VNGMk+E89 LKx4MvnAiPYl6SEDsBr8pB+aaX9zdJSOksYlRpV98DtBK+TvCnkk7/1hgdlPflf5IZbM eRRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GOdMYieO; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a17090270cc00b00187204b35besi10922428plt.203.2022.11.02.10.32.42; Wed, 02 Nov 2022 10:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GOdMYieO; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbiKBQHs (ORCPT + 98 others); Wed, 2 Nov 2022 12:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbiKBQHl (ORCPT ); Wed, 2 Nov 2022 12:07:41 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2041.outbound.protection.outlook.com [40.107.223.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26CCF2C11D; Wed, 2 Nov 2022 09:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bem749Doo2PspjewfPSjUqaFxZucYr99Tbh5dey6DkgCMAe3RKVGE5cocwJ1/Qbf5AeH9eX5hnRrNJ0URuxkk3eDgnofN3JaVTZOsITTBd2V31uFzVUJAfdcQ8Whj0LiC7Vk3UCP8y4N+A0dPrU4tnfjrZQ8jX7W8AWgh9MYXRlG3d4dCWIqExk2/qAGoVzlL8//lF2ObGCcN8RccFLvFY9g5BNdRoihC4iVDK77RBII7s/4E0QZZoJlP6bsrO5CIEU2dueS7LSJXWcUemQw//1GlRn/2Ddr1rGfixEDRaUOc3Vj24TFkayynv2aDxi9D7BhV9FUQeFuZu6q8EIyUg== 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=L4hv6wzZf6gzZKh07z0q40mh8/pQOq3J+cU8J6NWKbQ=; b=oMeeN68kYCWoptyafXKEmHfTg6kVuWkWnRNpq0q/MfJLMGvvpNewPYjclFPXttye4GzZ8nHKL6GuiiK79+s0/3DhlTnjmiCsJ+7Up1UG/BufszUrya6Ht2uKX1cnEpPF4FgSF+/lYEFgHc7L5VhwPgW4f7zR9or0X5A/zPNAafC2D0Y4w6aIpUuDurQlTzaFeVu8aDjbdH5PPhvWcHjvPnc8Z/9xeMnJHEfq8fj53GSsXXsMaZMsbpxHL7v6T00y7KpaTRC3hJTRz7vckUfxuzGZtLPqfi6t2GsXGX+n4Vvl+AJXzRQENMo6nQw8Y7KbowXVHOHIHwYWWr9ZsskcgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L4hv6wzZf6gzZKh07z0q40mh8/pQOq3J+cU8J6NWKbQ=; b=GOdMYieOloicPaK/WCIWDko11vyDs2mnQEDqrPiJ51eZk69IY9eYwR+xxJ05MBkhJLmccKOl3C5wbtSsLGiFnU23eFzLZ0U5LAOHyvmpjsKNy34T4UTJaTc0fK+kTTmZcfHqnI8mPQMB1kQ0zYpPr7AK9YRgIx7ZFkRNo+GCQio= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS0PR12MB6583.namprd12.prod.outlook.com (2603:10b6:8:d1::12) by PH0PR12MB5467.namprd12.prod.outlook.com (2603:10b6:510:e6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.19; Wed, 2 Nov 2022 16:07:37 +0000 Received: from DS0PR12MB6583.namprd12.prod.outlook.com ([fe80::442d:d0fb:eba1:1bd7]) by DS0PR12MB6583.namprd12.prod.outlook.com ([fe80::442d:d0fb:eba1:1bd7%9]) with mapi id 15.20.5769.019; Wed, 2 Nov 2022 16:07:37 +0000 Message-ID: <17ef4641-7cb3-fea8-4b1a-30b90c1719a1@amd.com> Date: Wed, 2 Nov 2022 09:07:34 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH linux-next] ionic: remove redundant ret variable Content-Language: en-US To: zhang.songyi@zte.com.cn, snelson@pensando.io Cc: drivers@pensando.io, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, brett@pensando.io, mohamed@pensando.io, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jiang.xuexin@zte.com.cn, xue.zhihong@zte.com.cn References: <202211022148203360503@zte.com.cn> From: Shannon Nelson In-Reply-To: <202211022148203360503@zte.com.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR02CA0015.namprd02.prod.outlook.com (2603:10b6:a02:ee::28) To DS0PR12MB6583.namprd12.prod.outlook.com (2603:10b6:8:d1::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6583:EE_|PH0PR12MB5467:EE_ X-MS-Office365-Filtering-Correlation-Id: e4f516cf-b3c0-4fcc-5ba7-08dabcec5c58 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iH60uv/E6ZF022+um1lHYcAeyFndtlKuNgwoC3rzfTQkv8LQxbY761VlBF7UWVx9qKcSD7VlrddzQ1rFcmkIU4VIEHQbom+FANyf3ypVWj/QM2wMqQdx5Qe6sbfc4m/qyx1ZKqB0ajAex5zax3K1nr1T2fIFKMiyYtzyX6T+YmQC0jlN06ZWcSWKhpiwf0Kk7F4aZ+cpz5HTsKC9MZAoZyHbc/4Aq8QoxgOCCDGH+ly6lad/Kk4709t1K9i9ET+IfI84Cr88QQpZF0hi7vOq9fh9i94YWOIm31MSdp3Bxh3MsuYFocwT7d/Q8BshUSd3YqGdiUvm2izzAs2FpLiv3XY4eoAuS9xguNIfpmTBWGoMBjWnGmrO7JbRRzA+HltC8KT/hE3fJMvPHw+ekYhxmReedPkcDw9lmN2naiL5BqZt0ocXu7ZscNO8q2hFqfkS+LYl6fPzvL7exvrsJJLubY7qMiMTejzSC2FbYxrqVb/LwiW2Hkw5wXT06wdOq5HxhpGREOagyHCaDTpmzUvrFu9b/6Ue8VwN3iEB4YBk4PeBHfXucSzxwx9q6WpzTriSxpPM/h7m+IuWnonGBmd0DsvFfa3fbNWMxiX6JZMYs2YFKPh32FdGI2oURgAvt/7atjvEHHNIlsUADb7Q+EiN88lwaB+p8jddiXer0UgTeDqvHp8s6U2PSfBGI4Ln7PWG7uNLVl4jT+J96aYO2mgOs+JcO3UreHFG0lm3LGWYKL3xRipyJtH0OGzzwFQVRql1p3qqEvetszteHxAxaAGy5LPYlVkdTc8OzDvfACDMDWg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB6583.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(366004)(346002)(39860400002)(396003)(136003)(451199015)(31686004)(83380400001)(31696002)(6486002)(6666004)(66946007)(2906002)(8676002)(36756003)(38100700002)(6512007)(26005)(2616005)(186003)(53546011)(66476007)(66556008)(4326008)(478600001)(316002)(8936002)(41300700001)(7416002)(6506007)(5660300002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MkVkZHE4VllhdlVBRlYzeDFvZkFJaVhoQVc3OVJaczFEaHRObmNONTBKK1p0?= =?utf-8?B?alZzeWRHUUtJRmkrS2x3eTNscGlDQkxxZzNkQXBlUHNsTGd5L2ErRlpwY25N?= =?utf-8?B?RklYWHhaNHNzQnJZNVpNKzVCUkc2U2RtRHpML2pqdkpyZytiVnpTMGc2cFdv?= =?utf-8?B?TEFFQi8zWnd4Z0lQUUt2SXkzaFNZcGhWVnA5ZVFsL2hqendMaWRKOVI5SFdS?= =?utf-8?B?SjVvQjNQMnFBWUxyeWpIN0J4em5TcmdyT3YrbVBoQjMxT3dWUVZaRWM2T21z?= =?utf-8?B?QmVOWVN5enZSUjdjaXErTzRyak9ZV1F3L2ZGS2JSSURqVGFMM1o3OGNzNzNZ?= =?utf-8?B?MkxiRmRRMDVEMnVEc1hwMXhUQkZiclRja1NsQSt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c0-4fcc-5ba7-08dabcec5c58 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6583.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2022 16:07:37.6131 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3LsKM/NIq4P8IehHJ0cF7RISZVJba3A/6CD089XC3iuh41Bp0Lf7qRkJlrpye4xNRDY4rNN3akqTJnMOn58lpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5467 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/22 6:48 AM, zhang.songyi@zte.com.cn wrote: > From 06579895d9e3f6441fa30d52e3b585b2015c7e2e Mon Sep 17 00:00:00 2001 > From: zhang songyi > Date: Wed, 2 Nov 2022 20:57:40 +0800 > Subject: [PATCH linux-next] ionic: remove redundant ret variable > > Return value from ionic_set_features() directly instead of taking this in > another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: zhang songyi Acked-by: Shannon Nelson ... although these changes usually go through the net or net-next trees. sln > --- > drivers/net/ethernet/pensando/ionic/ionic_lif.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c > index 4dd16c487f2b..a68d748502fd 100644 > --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c > +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c > @@ -1557,14 +1557,11 @@ static int ionic_set_features(struct net_device *netdev, > netdev_features_t features) > { > struct ionic_lif *lif = netdev_priv(netdev); > - int err; > > netdev_dbg(netdev, "%s: lif->features=0x%08llx new_features=0x%08llx\n", > __func__, (u64)lif->netdev->features, (u64)features); > > - err = ionic_set_nic_features(lif, features); > - > - return err; > + return ionic_set_nic_features(lif, features); > } > > static int ionic_set_attr_mac(struct ionic_lif *lif, u8 *mac) > -- > 2.15.2