From: Thomas Zimmermann <tzimmermann@suse.de>
To: Deepak R Varma <drv@mailo.com>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>, Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: Praveen Kumar <kumarpraveen@linux.microsoft.com>,
Saurabh Singh Sengar <ssengar@microsoft.com>
Subject: Re: [PATCH] drm/sprd: remove redundant error logging
Date: Tue, 20 Dec 2022 17:13:54 +0100 [thread overview]
Message-ID: <5ffe297c-f2b6-c669-768a-3f367b15a9a8@suse.de> (raw)
In-Reply-To: <Y6DPxKGmfRH5Bujn@qemulion>
[-- Attachment #1.1: Type: text/plain, Size: 1664 bytes --]
Hi
Am 19.12.22 um 21:55 schrieb Deepak R Varma:
> On Sun, Dec 11, 2022 at 07:25:08PM +0530, Deepak R Varma wrote:
>
> Hello,
> May I please request a review and feedback on this patch proposal?
Added to drm-misc-next. Thanks for the patch.
Best regards
Thomas
>
> Thank you,
> ./drv
>
>> A call to platform_get_irq() already prints an error on failure within
>> its own implementation. So printing another error based on its return
>> value in the caller is redundant and should be removed. The clean up
>> also makes if condition block braces unnecessary. Remove that as well.
>>
>> Issue identified using platform_get_irq.cocci coccicheck script.
>>
>> Signed-off-by: Deepak R Varma <drv@mailo.com>
>> ---
>> drivers/gpu/drm/sprd/sprd_dpu.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c
>> index 88f4259680f1..db0bcea1d9f4 100644
>> --- a/drivers/gpu/drm/sprd/sprd_dpu.c
>> +++ b/drivers/gpu/drm/sprd/sprd_dpu.c
>> @@ -803,10 +803,8 @@ static int sprd_dpu_context_init(struct sprd_dpu *dpu,
>> }
>>
>> ctx->irq = platform_get_irq(pdev, 0);
>> - if (ctx->irq < 0) {
>> - dev_err(dev, "failed to get dpu irq\n");
>> + if (ctx->irq < 0)
>> return ctx->irq;
>> - }
>>
>> /* disable and clear interrupts before register dpu IRQ. */
>> writel(0x00, ctx->base + REG_DPU_INT_EN);
>> --
>> 2.34.1
>>
>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2022-12-20 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-11 13:55 [PATCH] drm/sprd: remove redundant error logging Deepak R Varma
2022-12-11 13:55 ` Deepak R Varma
2022-12-19 20:55 ` Deepak R Varma
2022-12-19 20:55 ` Deepak R Varma
2022-12-20 16:13 ` Thomas Zimmermann [this message]
2022-12-22 8:07 ` Chunyan Zhang
2022-12-22 8:07 ` Chunyan Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ffe297c-f2b6-c669-768a-3f367b15a9a8@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=drv@mailo.com \
--cc=kumarpraveen@linux.microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=ssengar@microsoft.com \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.