Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp884831lko; Tue, 13 Jul 2021 12:11:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYaxeasqshcA1LEIwjHtH3ZEH0MzFjJges5mIatz8MPqc5Yl04aIe37YbBRdMXskPHPx4U X-Received: by 2002:a17:906:190c:: with SMTP id a12mr7492505eje.37.1626203503316; Tue, 13 Jul 2021 12:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626203503; cv=none; d=google.com; s=arc-20160816; b=SL39fdtyJfOGG1BYN/7dsD3kUxHkJ3mzHJGVzD9CO1Z9M9CDKgCgsxms/mvAUPL/NG 1j16cxKY3s3lChKP7D+E0P9/hJWg7zEo0EK15ZYBsZg06TCrdzPWmObph+xfZ4JLZfKs /w9CcKm0TPtZ/1MSG5qHE9s1Yx7X9CZLSMw/0p9hHaKzv2cA/DyhEKDOGX5c5vUTVZmB pKYYfx3xF/VqO7OYzSmIydUeTW9ED7sVEKdvywWU7YRwXOf5YzvYxp7tpVtXf5lXUjN2 GOWy+s3mxJxEBiwhqverbLcX/C49HSY2XFrK5oQOF6s+/MvNvoZ+3vRbm6N4GooxyKFl q+Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=66Ym9rib8rW7bljyaubpHS7D8hHZVdbMpRnUZITi76w=; b=CHab3AD4tfIdHdyUjX7xV9mWwnOZQhmhuw/24gvcFMvLnTcFeM9Xfy/RGSHHO/LPyg pHIPnx62PEP6oKJyr16EzjbF/GhRBg9dXsygCFDNeqy3QGi2SHcQN5ydav7HTDPbmDrn RJXrPyNkCYWmxMoB7yFLow4Oq4/aljhhOBN+R4H3iL8NodcQ9XaESDxxg8WaIU1F1BLn 7JPrz2Rm15iPU38MlhFEGlq9nbdtwtAQCJyHWbufSZb77VPQWg8ameXYalRNCLM+Fpvm //N7YYFoNPIGhTykejTc8pWsClFmXUPDLf6nzV8kE8cXKbT+CnRUSj4XwlvUzoVuKJk5 9FIg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si7678772ejn.329.2021.07.13.12.11.20; Tue, 13 Jul 2021 12:11:43 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbhGMTNL (ORCPT + 99 others); Tue, 13 Jul 2021 15:13:11 -0400 Received: from mga09.intel.com ([134.134.136.24]:42639 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbhGMTNK (ORCPT ); Tue, 13 Jul 2021 15:13:10 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10044"; a="210204577" X-IronPort-AV: E=Sophos;i="5.84,237,1620716400"; d="scan'208";a="210204577" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 12:10:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,237,1620716400"; d="scan'208";a="465192167" Received: from lkp-server01.sh.intel.com (HELO 4aae0cb4f5b5) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 13 Jul 2021 12:10:15 -0700 Received: from kbuild by 4aae0cb4f5b5 with local (Exim 4.92) (envelope-from ) id 1m3NnK-000I5x-Qv; Tue, 13 Jul 2021 19:10:14 +0000 Date: Wed, 14 Jul 2021 03:10:04 +0800 From: kernel test robot To: Alain Volmat Cc: kbuild-all@lists.01.org, Linux Memory Management List , Mark Brown , Maxime Coquelin , Alexandre Torgue , linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: stm32: fix excluded_middle.cocci warnings Message-ID: <20210713191004.GA14729@5eb5c2cbef84> References: <202107140345.xyOobAtH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202107140345.xyOobAtH-lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot drivers/spi/spi-stm32.c:915:23-25: WARNING !A || A && B is equivalent to !A || B Condition !A || A && B is equivalent to !A || B. Generated by: scripts/coccinelle/misc/excluded_middle.cocci Fixes: 7ceb0b8a3ced ("spi: stm32: finalize message either on dma callback or EOT") CC: Alain Volmat Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8f0df15bafc1e1c92b6d96bf8ef24dd8be3aec7b commit: 7ceb0b8a3ceddc36ae4ef1cba6c25a0e28ed65fc [1012/1340] spi: stm32: finalize message either on dma callback or EOT :::::: branch date: 11 hours ago :::::: commit date: 2 days ago spi-stm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -912,8 +912,7 @@ static irqreturn_t stm32h7_spi_irq_threa if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) stm32h7_spi_read_rxfifo(spi); if (!spi->cur_usedma || - (spi->cur_usedma && (spi->cur_comm == SPI_SIMPLEX_TX || - spi->cur_comm == SPI_3WIRE_TX))) + (spi->cur_comm == SPI_SIMPLEX_TX || spi->cur_comm == SPI_3WIRE_TX)) end = true; }