projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35bf8c8
)
nfc: fdp: Merge the same judgment
author
wengjianfeng
<wengjianfeng@yulong.com>
Fri, 26 Nov 2021 01:31:30 +0000
(09:31 +0800)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/drivers/nfc/fdp/i2c.c
b/drivers/nfc/fdp/i2c.c
index
f78670b
..
28a9e1e
100644
(file)
--- a/
drivers/nfc/fdp/i2c.c
+++ b/
drivers/nfc/fdp/i2c.c
@@
-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)