From: Wang Qing <wangqing@vivo.com> To: "Gustavo A. R. Silva" <gustavoars@kernel.org>, Jason Yan <yanaijie@huawei.com>, Sam Ravnborg <sam@ravnborg.org>, Wang Qing <wangqing@vivo.com>, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: delete redundant printing of return value Date: Thu, 11 Mar 2021 20:13:23 +0800 [thread overview] Message-ID: <1615464805-18056-1-git-send-email-wangqing@vivo.com> (raw) platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing <wangqing@vivo.com> --- drivers/video/fbdev/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c index 47e6a1d..e4fe6a4 --- a/drivers/video/fbdev/pxa168fb.c +++ b/drivers/video/fbdev/pxa168fb.c @@ -618,10 +618,8 @@ static int pxa168fb_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "no IRQ defined\n"); + if (irq < 0) return -ENOENT; - } info = framebuffer_alloc(sizeof(struct pxa168fb_info), &pdev->dev); if (info == NULL) { -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Wang Qing <wangqing@vivo.com> To: "Gustavo A. R. Silva" <gustavoars@kernel.org>, Jason Yan <yanaijie@huawei.com>, Sam Ravnborg <sam@ravnborg.org>, Wang Qing <wangqing@vivo.com>, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: delete redundant printing of return value Date: Thu, 11 Mar 2021 20:13:23 +0800 [thread overview] Message-ID: <1615464805-18056-1-git-send-email-wangqing@vivo.com> (raw) platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing <wangqing@vivo.com> --- drivers/video/fbdev/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c index 47e6a1d..e4fe6a4 --- a/drivers/video/fbdev/pxa168fb.c +++ b/drivers/video/fbdev/pxa168fb.c @@ -618,10 +618,8 @@ static int pxa168fb_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "no IRQ defined\n"); + if (irq < 0) return -ENOENT; - } info = framebuffer_alloc(sizeof(struct pxa168fb_info), &pdev->dev); if (info == NULL) { -- 2.7.4 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2021-03-11 12:14 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-11 12:13 Wang Qing [this message] 2021-03-11 12:13 ` [PATCH] video: fbdev: delete redundant printing of return value Wang Qing 2021-03-11 12:13 Wang Qing 2021-03-11 12:13 ` Wang Qing 2021-03-11 12:14 Wang Qing 2021-03-11 12:14 ` Wang Qing 2021-03-11 16:29 ` kernel test robot 2021-03-11 16:29 ` kernel test robot 2021-03-11 16:29 ` kernel test robot 2021-03-11 12:14 Wang Qing 2021-03-11 12:14 ` Wang Qing 2021-03-11 12:14 ` Wang Qing 2021-03-11 12:14 Wang Qing 2021-03-11 12:14 ` Wang Qing 2021-03-11 12:14 ` Wang Qing
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=1615464805-18056-1-git-send-email-wangqing@vivo.com \ --to=wangqing@vivo.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=gustavoars@kernel.org \ --cc=linux-fbdev@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sam@ravnborg.org \ --cc=yanaijie@huawei.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: linkBe 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.