linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfc: fdp: Merge the same judgment
@ 2021-11-26  1:31 samirweng1979
  2021-11-26  9:32 ` Krzysztof Kozlowski
  2021-11-26 19:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: samirweng1979 @ 2021-11-26  1:31 UTC (permalink / raw)
  To: krzysztof.kozlowski, davem, kuba; +Cc: netdev, linux-kernel, wengjianfeng

From: wengjianfeng <wengjianfeng@yulong.com>

Combine two judgments that return the same value

Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nfc: fdp: Merge the same judgment
  2021-11-26  1:31 [PATCH] nfc: fdp: Merge the same judgment samirweng1979
@ 2021-11-26  9:32 ` Krzysztof Kozlowski
  2021-11-26 19:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2021-11-26  9:32 UTC (permalink / raw)
  To: samirweng1979, davem, kuba; +Cc: netdev, linux-kernel, wengjianfeng

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


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nfc: fdp: Merge the same judgment
  2021-11-26  1:31 [PATCH] nfc: fdp: Merge the same judgment samirweng1979
  2021-11-26  9:32 ` Krzysztof Kozlowski
@ 2021-11-26 19:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-11-26 19:30 UTC (permalink / raw)
  To: samirweng1979
  Cc: krzysztof.kozlowski, davem, kuba, netdev, linux-kernel, wengjianfeng

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 26 Nov 2021 09:31:30 +0800 you wrote:
> From: wengjianfeng <wengjianfeng@yulong.com>
> 
> Combine two judgments that return the same value
> 
> Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
> ---
>  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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-26 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26  1:31 [PATCH] nfc: fdp: Merge the same judgment samirweng1979
2021-11-26  9:32 ` Krzysztof Kozlowski
2021-11-26 19:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).