mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08:00
nfc: fdp: Merge the same judgment
Combine two judgments that return the same value Signed-off-by: wengjianfeng <wengjianfeng@yulong.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20211126013130.27112-1-samirweng1979@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
35bf8c86ee
commit
af22d05507
@ -205,9 +205,7 @@ static irqreturn_t fdp_nci_i2c_irq_thread_fn(int irq, void *phy_id)
|
||||
|
||||
r = fdp_nci_i2c_read(phy, &skb);
|
||||
|
||||
if (r == -EREMOTEIO)
|
||||
return IRQ_HANDLED;
|
||||
else if (r == -ENOMEM || r == -EBADMSG)
|
||||
if (r == -EREMOTEIO || r == -ENOMEM || r == -EBADMSG)
|
||||
return IRQ_HANDLED;
|
||||
|
||||
if (skb != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user