fjes: Check for error irq
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 22 Dec 2021 07:12:07 +0000 (15:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Dec 2021 10:22:13 +0000 (10:22 +0000)
commitdb6d6afe382de5a65d6ccf51253ab48b8e8336c3
treee129d7813522c1f04b89e1943afb8bbaa965e713
parent1c15b05baea71a5ff98235783e3e4ad227760876
fjes: Check for error irq

I find that platform_get_irq() will not always succeed.
It will return error irq in case of the failure.
Therefore, it might be better to check it if order to avoid the use of
error irq.

Fixes: 658d439b2292 ("fjes: Introduce FUJITSU Extended Socket Network Device driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c