]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
nfc: fdp: Merge the same judgment
authorwengjianfeng <wengjianfeng@yulong.com>
Fri, 26 Nov 2021 01:31:30 +0000 (09:31 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:22:14 +0000 (11:22 -0800)
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>
drivers/nfc/fdp/i2c.c

index f78670bf41e01c7de2402d45d318d4d84340b513..28a9e1eb9bcf49d8aec2cb0f5ef5a268d4fbeedc 100644 (file)
@@ -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)