[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211224131300.18198-6-prabhakar.mahadev-lad.rj@bp.renesas.com>
Date: Fri, 24 Dec 2021 13:12:54 +0000
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
To: Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Cc: Sergey Shtylyov <s.shtylyov@....ru>,
Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org,
Prabhakar <prabhakar.csengg@...il.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
linux-ide@...r.kernel.org
Subject: [PATCH v3 05/10] ata: pata_platform: Drop checking IRQ number
The callers of __pata_platform_probe() will pass the IRQ resource only for
valid IRQ's, for invalid IRQ's the IRQ resource will always be NULL. So
drop checking the IRQ number.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
---
v2-->v3
* New patch
---
drivers/ata/pata_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index 2e439b923762..f500f631f72b 100644
--- a/drivers/ata/pata_platform.c
+++ b/drivers/ata/pata_platform.c
@@ -114,7 +114,7 @@ int __pata_platform_probe(struct device *dev, struct resource *io_res,
/*
* And the IRQ
*/
- if (irq_res && irq_res->start > 0) {
+ if (irq_res) {
irq = irq_res->start;
irq_flags = (irq_res->flags & IRQF_TRIGGER_MASK) | IRQF_SHARED;
}
--
2.17.1
Powered by blists - more mailing lists