* [PATCH] arm: plat-pxa: delete redundant printing of the error
@ 2021-03-12 8:28 Wan Jiabing
0 siblings, 0 replies; only message in thread
From: Wan Jiabing @ 2021-03-12 8:28 UTC (permalink / raw)
To: Russell King, Wan Jiabing, linux-arm-kernel, linux-kernel; +Cc: kernel, kael_w
platform_get_irq() has already checked and printed the error,
the printing here is not necessary at all.
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
arch/arm/plat-pxa/ssp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 563440315acd..9e77b3392c1e 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -146,10 +146,8 @@ static int pxa_ssp_probe(struct platform_device *pdev)
}
ssp->irq = platform_get_irq(pdev, 0);
- if (ssp->irq < 0) {
- dev_err(dev, "no IRQ resource defined\n");
+ if (ssp->irq < 0)
return -ENODEV;
- }
if (dev->of_node) {
const struct of_device_id *id =
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-12 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 8:28 [PATCH] arm: plat-pxa: delete redundant printing of the error Wan Jiabing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).