Skip to content
Commit 40b4ac88 authored by Li Qiong's avatar Li Qiong Committed by David S. Miller
Browse files

net: lan966x: fix checking for return value of platform_get_irq_byname()



The platform_get_irq_byname() returns non-zero IRQ number
or negative error number. "if (irq)" always true, chang it
to "if (irq > 0)"

Signed-off-by: default avatarLi Qiong <liqiong@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75d8620d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment