Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

wengjianfeng and committed by
Jakub Kicinski
af22d055 35bf8c86

+1 -3
+1 -3
drivers/nfc/fdp/i2c.c
··· 205 205 206 206 r = fdp_nci_i2c_read(phy, &skb); 207 207 208 - if (r == -EREMOTEIO) 209 - return IRQ_HANDLED; 210 - else if (r == -ENOMEM || r == -EBADMSG) 208 + if (r == -EREMOTEIO || r == -ENOMEM || r == -EBADMSG) 211 209 return IRQ_HANDLED; 212 210 213 211 if (skb != NULL)