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)
commit99d7fbb5cedf598f67e8be106d6c7b8d91366aef
treef724be5f303002b0cde42ab84ccae580a2a75f48
parentcb93b3e11d405f20a405a07482d01147ef4934a3
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: 797047f875b5 ("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