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

drivers: net: xen-netfront: Simplify the calculation of variables

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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/1612261069-13315-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jiapeng Chong and committed by
Jakub Kicinski
e93fac3b 493007c1

+1 -1
+1 -1
drivers/net/xen-netfront.c
··· 1811 1811 * a) feature-split-event-channels == 0 1812 1812 * b) feature-split-event-channels == 1 but failed to setup 1813 1813 */ 1814 - if (!feature_split_evtchn || (feature_split_evtchn && err)) 1814 + if (!feature_split_evtchn || err) 1815 1815 err = setup_netfront_single(queue); 1816 1816 1817 1817 if (err)