lkml.org 
[lkml]   [2017]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] genirq: Use is_fwnode_irqchip() directly
Date
From: Hanjun Guo <hanjun.guo@linaro.org>

is_fwnode_irqchip() already check fwnode is NULL or not,
just use is_fwnode_irqchip() directly.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
kernel/irq/irqdomain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 1bc38fa..14a21a3 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -137,7 +137,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
if (WARN_ON(!domain))
return NULL;

- if (fwnode && is_fwnode_irqchip(fwnode)) {
+ if (is_fwnode_irqchip(fwnode)) {
fwid = container_of(fwnode, struct irqchip_fwid, fwnode);

switch (fwid->type) {
--
1.7.12.4
\
 
 \ /
  Last update: 2017-07-06 06:41    [W:0.066 / U:9.012 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site