]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d9169463be99689d702816b33cf8e64581a02f2
tree56f83f34ec880697af2c7cfd0b3c910b4789abe3
parent2e35c64f3861911fd96ef5439d84439d5a924259
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: f90d2ab93db2 ("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