2021-11-26 01:36:18

by samirweng1979

[permalink] [raw]
Subject: [PATCH] nfc: fdp: Merge the same judgment

From: wengjianfeng <[email protected]>

Combine two judgments that return the same value

Signed-off-by: wengjianfeng <[email protected]>
---
drivers/nfc/fdp/i2c.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/nfc/fdp/i2c.c b/drivers/nfc/fdp/i2c.c
index f78670bf41e0..28a9e1eb9bcf 100644
--- 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)
--
2.29.0




2021-11-26 09:34:53

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] nfc: fdp: Merge the same judgment

On 26/11/2021 02:31, samirweng1979 wrote:
> From: wengjianfeng <[email protected]>
>
> Combine two judgments that return the same value
>
> Signed-off-by: wengjianfeng <[email protected]>
> ---
> drivers/nfc/fdp/i2c.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>


Reviewed-by: Krzysztof Kozlowski <[email protected]>


Best regards,
Krzysztof

2021-11-26 19:48:11

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH] nfc: fdp: Merge the same judgment

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <[email protected]>:

On Fri, 26 Nov 2021 09:31:30 +0800 you wrote:
> From: wengjianfeng <[email protected]>
>
> Combine two judgments that return the same value
>
> Signed-off-by: wengjianfeng <[email protected]>
> ---
> drivers/nfc/fdp/i2c.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)

Here is the summary with links:
- nfc: fdp: Merge the same judgment
https://git.kernel.org/netdev/net-next/c/af22d0550705

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html