Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3562650rwb; Mon, 5 Sep 2022 14:12:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR46Zbr2rsclYdID4Osv6p6DoOGQdoHg0D0SZ4Tp/GvwpZE2icpoxwal8+50uwK3e84Y/tt/ X-Received: by 2002:aa7:c74c:0:b0:44e:a7b9:d5c9 with SMTP id c12-20020aa7c74c000000b0044ea7b9d5c9mr3313824eds.19.1662412319671; Mon, 05 Sep 2022 14:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662412319; cv=none; d=google.com; s=arc-20160816; b=Py6aii7cCbEMtSq7XpK4Asm8P/QH5qRVpRufzOA0sLowrUjiMt5G8ZqTH2JF7vSzND idPVnWNdVGo6x2P0ogB+h9WWyLsLc8R6fXPNkDqHbwhJ6pUnVzAfE0sofei+2gJ6hiM3 yWcksGw3MWEHs9w7FMI0aXGzJ6rWx/xrEslfv37Mcphr11/n/3IQQKjnATASHDpvMt0c ifcAlGzWVwVFG8EqnRK2Ho8KQQiijeVg+hiziF9H9cALVs746DTr/JCnKQ/InwrvccQt V5A1SfEO9b6SVpsvdDrAtIy9l0NSRXtD0Io9ZCYxelD1zh5KXPWzRaGwBMpX862RtJsS qkqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WFLvyYn+rf0DWQUBosQOMvrDyyhko4+gjrrIITVLAsc=; b=mEKC6KAGK53R96q2hmsW1AzkIR5pN+oiY2TMnEyC/TtjkhmvpFMXUnYcAwnCPUurUh 32N6HlFTeqD4ZdIIZwVTYwfmd3agI/9AtirSDW7BjPS40prr7JOU0tfuYSBc0mVctRap xtuJs34xwwlFWbQtUfgsrOEK8u/IY8jevaPg4HcQ39s8nKERBBHM+arITbL5uJM+P1Iz boEviTr6HuSvl82rk5pI4CXucE89BDere4yhrbVpN0oJvUmLSqJU7JcnTre0r0hkhomR rP0n/qyPLCYhDY1WXuD/LqD7AzZH21z1DSuIfspf68wjiACxm2/2dOBE95sEuB3eZsYP mvBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="I6iH1/v4"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170906795000b00730a23ec163si7448493ejo.660.2022.09.05.14.11.33; Mon, 05 Sep 2022 14:11:59 -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=@gmail.com header.s=20210112 header.b="I6iH1/v4"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231682AbiIEUqR (ORCPT + 99 others); Mon, 5 Sep 2022 16:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbiIEUqQ (ORCPT ); Mon, 5 Sep 2022 16:46:16 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A194F6AA; Mon, 5 Sep 2022 13:46:14 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 29so7565615edv.2; Mon, 05 Sep 2022 13:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=WFLvyYn+rf0DWQUBosQOMvrDyyhko4+gjrrIITVLAsc=; b=I6iH1/v4LoaIiCU1U/gwBWJUBNKI9fGFy6oyWuI1XpFemSWXXJaukVORy6X3T5ZTA2 J/ZQoYVo3d87S4QPIODNT36+yUqhPmC4qJJck37x68XFMtqneCq6z+d83+u2g1XJtK5L y3+vNzEz796iG0XlWxJegm/6OxVW43Pa+Awfja9+ZOXNooHLJcrNLSJSaB3KPLRHjVre UxWrGrdd49/eWrSEMYOq5/a07P2QmHCxWlkwcAHB/aY//1SyoqL5XutMfIn5IdAfUmE4 L9pHc9HOaldkoZc9FZD/qH3Bk1eIxLJIxCtrJMPX2QySVMLseWxKJSp4ruM4nOR9cnJS 8XxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=WFLvyYn+rf0DWQUBosQOMvrDyyhko4+gjrrIITVLAsc=; b=c8bhELVAJ9WJBl+oJBdyckUEMaEB8AaEnifcOHhUJFNlJo+pvGOJX7U80oa5gAKrHd k8nwILrl8e2R1jwvJI2AYLCO2gi88jSi2C3r5/UP2Z2h9ZtnB8XF185fm//VzBn5EWb3 EG5zsP0KRYUUOi7ViGyKced/W+PLlxjC4V2PIUfcymF7VR05wtke6h9OudUDkQwDS1Mc jU+pN5bRt8PMzIZDeqgssjK1jpgPpDTZFV8PJrYKP2yUwtKh2Ge0IEb1XG83cvrf74i4 pFA43t9CWxmUJud6SwR6b/YJyJHMEhfmqZEdCrcJm1S7IVQOzbGEcOeBuy8aYp4Y1m93 k0hA== X-Gm-Message-State: ACgBeo2dYNLRMm0H5GQDgN6LWfzEcF/hIRap7k4cC6Zmy+k/BOWhf5jS id7f0/29dH/lAQHqQ6LSroj3cEIq9ms702BEH1M= X-Received: by 2002:a05:6402:518b:b0:448:f30:38b0 with SMTP id q11-20020a056402518b00b004480f3038b0mr38038451edd.164.1662410772949; Mon, 05 Sep 2022 13:46:12 -0700 (PDT) MIME-Version: 1.0 References: <20220830142136.299373-1-cui.jinpeng2@zte.com.cn> In-Reply-To: <20220830142136.299373-1-cui.jinpeng2@zte.com.cn> From: Janusz Krzysztofik Date: Mon, 5 Sep 2022 22:46:01 +0200 Message-ID: Subject: Re: [PATCH linux-next] ARM: omap1: remove redundant variables err To: Aaro Koskinen , Tony Lindgren , cgel.zte@gmail.com Cc: Russell King , linux-arm Mailing List , Linux OMAP Mailing List , Linux Kernel Mailing List , Jinpeng Cui , Zeal Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Tuesday, 30 August 2022 16:21:36 CEST cgel.zte@gmail.com wrote: > From: Jinpeng Cui > > Rturn value directly from platform_device_register() > instead of getting value from redundant variable err. > > Reported-by: Zeal Robot > Signed-off-by: Jinpeng Cui Acked-by: Janusz Krzysztofik Note: The same change, form a different author @zte.com.cn, with a different wording in commit message and description, was submitted a few hours before this one. However, I decided to respond with my Ack to this one because the other one was not sent to linux-omap@vger.kernel.org, then it didn't reach OMAP patchwork. If my decision is not in line with some recommendations and I should rather prefer the submission sent earlier then please let me know and I'll respond with my Ack to it as well. Thanks, Janusz > --- > arch/arm/mach-omap1/board-ams-delta.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c > index 651c28d81132..e5531ef0fbde 100644 > --- a/arch/arm/mach-omap1/board-ams-delta.c > +++ b/arch/arm/mach-omap1/board-ams-delta.c > @@ -822,8 +822,6 @@ static int __init modem_nreset_init(void) > */ > static int __init ams_delta_modem_init(void) > { > - int err; > - > if (!machine_is_ams_delta()) > return -ENODEV; > > @@ -832,9 +830,7 @@ static int __init ams_delta_modem_init(void) > /* Initialize the modem_nreset regulator consumer before use */ > modem_priv.regulator = ERR_PTR(-ENODEV); > > - err = platform_device_register(&ams_delta_modem_device); > - > - return err; > + return platform_device_register(&ams_delta_modem_device); > } > arch_initcall_sync(ams_delta_modem_init); > >