Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp457938rwb; Sun, 6 Nov 2022 08:25:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ywMyb/i18cfP0f87xqZhqoh3G9JbO3Wy2fhtqwJzO+tS4M4wWuVx0A5czylAj6f8Cf5nL X-Received: by 2002:a65:5905:0:b0:470:4732:f13e with SMTP id f5-20020a655905000000b004704732f13emr8607773pgu.11.1667751921174; Sun, 06 Nov 2022 08:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667751921; cv=none; d=google.com; s=arc-20160816; b=vNDKVGDIRhFp+IgOGbpoi7w/ewsemye3ui+BJcztU+PkUymVdxg/MWngGpmpLyjmjI 6SDM0C/OnEqchlaP6vmBuWFsAxNq7MPXFkG7+OTTHFmYnD9rljA927oHo+TBPByr+Mbr 9WQ34U0ATL64Glk4n6sGKpHyWJP56hk8cV9TPHzAFMIC/Vu4jZ0rlsGBbx2na1EUbrVH 6FYbs7KfqDoAuU8JzCNYbedKJVY/YVKW1ym2fsS66dUAg04ulkVVw2wRIM75X8rRRtLl C24C/cLLf2KBMvZ36PAFQiMQxcX4TINK5W9w3B3zHBdvsTzOvJI3EHbB7yb81+EIpHO1 cfyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=uK2D1WExxM0F/4JIf+dfcN2CCubz8NBjmiMKvD8CnTo=; b=yAhaijjiqLMfnH+8AMQcLbV1zfpGjbepMQLMq7T9vkZXpdNDf2I6pfInVqr49q1uiz AK9RZFYouP/DjaghaRalczdp62ySPAZQsyLvFYmVT31ISjf5I26HCaDOK2iTDd6PyVz+ CGLKuVx1D+h8BVL8V0BrKklgTTRbxa0wio31TU0VWPh9NcR5ZXJZk+wLCGNUwrR+7x1v HotUikCYXmnLlnEAVzITHXWYOi7RtbKUONT4pYYC1mFVyF+0pENkZtPwIhPufmRBjxrG IwVFydvmveRc9sV12CxW//P0YF//9g3USs4xHPFALS2ROXQw0mXypCKXl5rXeTpRyLht cA2w== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l72-20020a63914b000000b0046eb96c4f90si6803385pge.549.2022.11.06.08.25.09; Sun, 06 Nov 2022 08:25:21 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbiKFPxa (ORCPT + 96 others); Sun, 6 Nov 2022 10:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbiKFPx3 (ORCPT ); Sun, 6 Nov 2022 10:53:29 -0500 Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30238BC94 for ; Sun, 6 Nov 2022 07:53:26 -0800 (PST) Received: from [192.168.1.18] ([86.243.100.34]) by smtp.orange.fr with ESMTPA id rhxHo61YXtk1arhxHobRD1; Sun, 06 Nov 2022 16:53:12 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 06 Nov 2022 16:53:12 +0100 X-ME-IP: 86.243.100.34 Message-ID: <49a39f01-3457-e049-d16e-d0d729aa0a73@wanadoo.fr> Date: Sun, 6 Nov 2022 16:53:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] mailbox: platform-mhu: Remove unnecessary print function dev_err() Content-Language: fr, en-US To: wangkailong@jari.cn, jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org References: <6745733c.be.1844d54f4b9.Coremail.wangkailong@jari.cn> From: Christophe JAILLET In-Reply-To: <6745733c.be.1844d54f4b9.Coremail.wangkailong@jari.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Le 06/11/2022 à 15:25, wangkailong@jari.cn a écrit : > Eliminate the follow coccicheck warning: > > ./drivers/mailbox/platform_mhu.c:139:3-10: line 139 is redundant because > platform_get_irq() already prints an error > > Signed-off-by: KaiLong Wang > --- > drivers/mailbox/platform_mhu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mailbox/platform_mhu.c b/drivers/mailbox/platform_mhu.c > index a5922ac0b0bf..08e0eedea860 100644 > --- a/drivers/mailbox/platform_mhu.c > +++ b/drivers/mailbox/platform_mhu.c > @@ -136,7 +136,6 @@ static int platform_mhu_probe(struct platform_device *pdev) > mhu->chan[i].con_priv = &mhu->mlink[i]; > mhu->mlink[i].irq = platform_get_irq(pdev, i); > if (mhu->mlink[i].irq < 0) { > - dev_err(dev, "failed to get irq%d\n", i); > return mhu->mlink[i].irq; > } Hi, apparently, you sent several patches like this one. When doing such cleanups, you should also remove the now useless { } when there is just one statement left, after the "if". CJ > mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i];