Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5012064iob; Mon, 9 May 2022 06:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6jJBqCd3Fmkh06/HkCnXv0tKJJkmJ+JQRdzIf2WYnuOrMYI6vp4osjmh3omqFH28wPX9n X-Received: by 2002:a63:8542:0:b0:3ab:4911:ec35 with SMTP id u63-20020a638542000000b003ab4911ec35mr13367894pgd.356.1652104505547; Mon, 09 May 2022 06:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652104505; cv=none; d=google.com; s=arc-20160816; b=KpR+zDG8awG4i9qwH7NTQCdpLQrJ51lEmm2AZx0UhGA5AiIsmGvM27Yqo6TAZZ7hC2 XuB3T0k0yDBmYD08/ltGtK+WnyqyHeQbB/r81J3gcvlRpd+0LKALZaVP+U0XaPiK8Ejf HId9bipfuiqB+/5R0wKVkiKF9MbeSGFtU2RJHhySA4xOH9p0nfdA0o03OLA7zRdMitE4 wFrjIXPpEL08d3328qBOdE797EPTG/4HPletm4N21ro3nlq6ZB3lnNQTlcrrb+7ODsIM B4RglOy4ZR7+gJAwLay5ppo/OhqsPW6asZN+k63ae86ikmvhtZ0NPfpr2ndYSKWb/SYd 8kOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZnYEbiuPg19G7RKhClnR58Z42F9RB/x0Yzts4HnLdRU=; b=AQ3PuwkR/mIG6Lzreq5MfOT94genHQWNIjJAQGllXbjSo0m4iS2f+mGvyxQQxZKK+s 9LR7et6K4Ium0PBV00PvTr9rvZ5z5fjpsm0TDBHGwJqRiignoM0sAMCbbSZv55UZcrUW 8a0rd3I3N0De6yTBMVCAos+p2tfa1UKulah1q/NiWOIg9o4KaRI3IKh2RKThPYdq9DOx tIHk5NXOrSNdunSeF0glD8r4UAZUd5/TzF6Q9uuiWgU1oSQuD2woRr64Zr8FpL1IsknS YhiG9Nbe7+AaJgouEFA0ehfcSX5OXZjkyS1H7gKIkCt5LMSAu6CeGPhl917Su8I/+ibO Hf4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XlkYVUWC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h5-20020a632105000000b003bc321e6d61si14261167pgh.379.2022.05.09.06.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:55:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XlkYVUWC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A99FE269ED0; Mon, 9 May 2022 06:43:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236507AbiEINrI (ORCPT + 99 others); Mon, 9 May 2022 09:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236461AbiEINq7 (ORCPT ); Mon, 9 May 2022 09:46:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99AF26A71A for ; Mon, 9 May 2022 06:42:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 96C7DB8161D for ; Mon, 9 May 2022 13:42:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC9D4C385A8; Mon, 9 May 2022 13:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652103759; bh=mM+F759D5ZWo2I+asLHaLWX2EZXN28v7krIQk+1XxP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XlkYVUWCMQBwoTy+SdrSBR3NETefmo7ANRdDxSSK8Gc4fGKzGoGkScKZ5yNyFEGbi lKoYW8xYo2Ixt4Q+fkSCXmjBPBo/M5kefc4m0CKq8XyYvU51Ys6RrdEgPXfEwCfsZr 4AfTcgaSr/jTvuXVgHnqsAvhaIvyo8d+n42eTmzI= Date: Mon, 9 May 2022 15:42:36 +0200 From: Greg KH To: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: Re: [PATCH 2/2] slimbus: qcom: Remove unnecessary print function dev_err() Message-ID: References: <20220429165051.6187-1-srinivas.kandagatla@linaro.org> <20220429165051.6187-3-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429165051.6187-3-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Fri, Apr 29, 2022 at 05:50:51PM +0100, Srinivas Kandagatla wrote: > From: Yang Li > > The print function dev_err() is redundant because > platform_get_irq_byname() already prints an error. > > Eliminate the follow coccicheck warning: > ./drivers/slimbus/qcom-ctrl.c:514:2-9: line 514 is redundant because > platform_get_irq() already prints an error > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > Signed-off-by: Srinivas Kandagatla > --- > drivers/slimbus/qcom-ctrl.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c > index ec58091fc948..c0c4f895d76e 100644 > --- a/drivers/slimbus/qcom-ctrl.c > +++ b/drivers/slimbus/qcom-ctrl.c > @@ -510,10 +510,8 @@ static int qcom_slim_probe(struct platform_device *pdev) > } > > ctrl->irq = platform_get_irq(pdev, 0); > - if (ctrl->irq < 0) { > - dev_err(&pdev->dev, "no slimbus IRQ\n"); > + if (ctrl->irq < 0) > return ctrl->irq; > - } > > sctrl = &ctrl->ctrl; > sctrl->dev = &pdev->dev; > -- > 2.21.0 > Does not apply to my tree :(