projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e9e5e
)
net: gemini: Do not check for 0 return after calling platform_get_irq()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Wed, 2 Aug 2023 08:52:16 +0000
(16:52 +0800)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 3 Aug 2023 12:50:28 +0000
(14:50 +0200)
It is not possible for platform_get_irq() to return 0. Use the
return value from platform_get_irq().
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Link:
https://lore.kernel.org/r/20230802085216.659238-1-ruanjinjie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/cortina/gemini.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cortina/gemini.c
b/drivers/net/ethernet/cortina/gemini.c
index 5715b9ab2712e8b9ef2c8fdbdb7fe426278e648f..692cb2d04c1c7dc75f23b6ad066d35b51c57f0dc 100644
(file)
--- a/
drivers/net/ethernet/cortina/gemini.c
+++ b/
drivers/net/ethernet/cortina/gemini.c
@@
-2415,8
+2415,8
@@
static int gemini_ethernet_port_probe(struct platform_device *pdev)
/* Interrupt */
irq = platform_get_irq(pdev, 0);
- if (irq <
=
0)
- return irq
? irq : -ENODEV
;
+ if (irq < 0)
+ return irq;
port->irq = irq;
/* Clock the port */