]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Check for error irq
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 22 Dec 2021 07:59:44 +0000 (15:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Dec 2021 10:23:50 +0000 (10:23 +0000)
commitbe423e185aa3f3a861b460d5364222625f0e841c
treef724be5f303002b0cde42ab84ccae580a2a75f48
parent0d9169463be99689d702816b33cf8e64581a02f2
net: ks8851: 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: d75e9939d383 ("net: ks8851: Implement Parallel bus operations")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851_par.c