drivers: net: smc911x: Check for error irq
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 22 Dec 2021 07:41:12 +0000 (15:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Dec 2021 10:23:03 +0000 (10:23 +0000)
commitcb93b3e11d405f20a405a07482d01147ef4934a3
tree56f83f34ec880697af2c7cfd0b3c910b4789abe3
parentdb6d6afe382de5a65d6ccf51253ab48b8e8336c3
drivers: net: smc911x: Check for error irq

Because platform_get_irq() could fail and return error irq.
Therefore, it might be better to check it if order to avoid the use of
error irq.

Fixes: ae150435b59e ("smsc: Move the SMC (SMSC) drivers")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc911x.c