Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp178694pxb; Tue, 2 Feb 2021 02:20:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLE4RBzr7pghyy4RBCpH44/9tsqyaK0x8d99Z8Q1HKokaeJfl+/asYptJ1BAsR64VlZIx3 X-Received: by 2002:a17:906:3146:: with SMTP id e6mr20943131eje.363.1612261249744; Tue, 02 Feb 2021 02:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612261249; cv=none; d=google.com; s=arc-20160816; b=YbZJuPZYW1ZNrpwZnfhA8D1gtcT1MBxCT2Fo+0BWgAGlfVI0MaYl2fSdziKGTjvtkA J46ApxUzZHThvvwpzsqkLen/MZirCqlWwWbrOD0URwZB+kCqWeGyAyy9KS22oYf2PeDE JJcYpSZ4LC9tudyFwJwlhHw7MTRirF5H33p9JfXWxx9S+ag+aGV3MO+IohIOes0ogm9D 9cnF1YKBB9BnSCFOg0MdKuyWTMUMgFIjXhIHK7GXLzfP2mtvtsQQU/w9CYZKByh+xlRK U9wdQ9MefEORSnUMOntDlgs9jZcZIf15aA8TTCQtW4yt4czWRUmXqZDpD0dgGO33RCYN CU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=g/rszK3RUDDYz9bat04iFSiWttniv0lDsCFpel3L95g=; b=GmzCR6yCNd660rCPJx3u8L/TJ0IFcrJ5j4pSU2pSddMgmE0wZBWNVzdb43ZGPyNCyZ qqB5rOe9GoOcpX8nshKQoCiF9HrYq+90HPXzaaTSCU4mYkAS04CNOF/MOZC9E76obGJp MiEhxcbyntUA8K/Q6t8dlKBd8vrMmPlf8b3ZeqZyc8phFj1d7BMCJb0G7598/Hp159nu hxyJ3T8nrTvsRk8KI8o5rUyxiZgxqpmL4u0RBWQKbkpFhwXkzuBx/q5i8a4X8Mz8iIYG 0CkR9rnjMxc0XwWWyS1ZBsMHMGykonWUXShrWJnBNYRxrWDfDcY0QYJiqfrG9Bq8CNLZ KEYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si12194111ejb.546.2021.02.02.02.20.25; Tue, 02 Feb 2021 02:20:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbhBBKSp (ORCPT + 99 others); Tue, 2 Feb 2021 05:18:45 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:41281 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhBBKSo (ORCPT ); Tue, 2 Feb 2021 05:18:44 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0UNfdAcH_1612261072; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNfdAcH_1612261072) by smtp.aliyun-inc.com(127.0.0.1); Tue, 02 Feb 2021 18:17:59 +0800 From: Jiapeng Chong To: boris.ostrovsky@oracle.com Cc: jgross@suse.com, sstabellini@kernel.org, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, kpsingh@kernel.org, xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drivers: net: xen-netfront: Simplify the calculation of variables Date: Tue, 2 Feb 2021 18:17:49 +0800 Message-Id: <1612261069-13315-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Jiapeng Chong --- 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