[PATCH] drivers: net: xen-netfront: Simplify the calculation of variables

Subsystems: networking drivers, the rest, xen hypervisor interface

STALE2009d LANDED

Landed in mainline as e93fac3b5161 on 2021-02-04.

3 messages, 3 authors, 2021-02-04 · open the first message on its own page

[PATCH] drivers: net: xen-netfront: Simplify the calculation of variables

From: Jiapeng Chong <hidden>
Date: 2021-02-02 10:19:04

Fix the following coccicheck warnings:

./drivers/net/xen-netfront.c:1816:52-54: WARNING !A || A && B is
equivalent to !A || B.

Reported-by: Abaci Robot <redacted>
Signed-off-by: Jiapeng Chong <redacted>
---
 drivers/net/xen-netfront.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index b01848e..5158841 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1813,7 +1813,7 @@ static int setup_netfront(struct xenbus_device *dev,
 	 *  a) feature-split-event-channels == 0
 	 *  b) feature-split-event-channels == 1 but failed to setup
 	 */
-	if (!feature_split_evtchn || (feature_split_evtchn && err))
+	if (!feature_split_evtchn || err)
 		err = setup_netfront_single(queue);
 
 	if (err)
-- 
1.8.3.1

Re: [PATCH] drivers: net: xen-netfront: Simplify the calculation of variables

From: Jürgen Groß <jgross@suse.com>
Date: 2021-02-04 11:10:19

On 02.02.21 11:17, Jiapeng Chong wrote:
Fix the following coccicheck warnings:

./drivers/net/xen-netfront.c:1816:52-54: WARNING !A || A && B is
equivalent to !A || B.

Reported-by: Abaci Robot <redacted>
Signed-off-by: Jiapeng Chong <redacted>
Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen

Re: [PATCH] drivers: net: xen-netfront: Simplify the calculation of variables

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-02-04 19:41:08

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Tue,  2 Feb 2021 18:17:49 +0800 you wrote:
Fix the following coccicheck warnings:

./drivers/net/xen-netfront.c:1816:52-54: WARNING !A || A && B is
equivalent to !A || B.

Reported-by: Abaci Robot <redacted>
Signed-off-by: Jiapeng Chong <redacted>

[...]
Here is the summary with links:
  - drivers: net: xen-netfront: Simplify the calculation of variables
    https://git.kernel.org/netdev/net-next/c/e93fac3b5161

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help