Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3378711pxv; Mon, 26 Jul 2021 02:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZlixGxCCfLr0zkmZMX1l3Intf85a7RAQeZ51BtGnm7vOiNbXa+ngVDHcmjT7RcLXOb3mx X-Received: by 2002:a17:906:805:: with SMTP id e5mr17066132ejd.310.1627293480824; Mon, 26 Jul 2021 02:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627293480; cv=none; d=google.com; s=arc-20160816; b=aJjZjttbGZ8hp3MBG0drAR2rpkJEV+DlYpu4swploIYZgZaphZOvqTZ+5C1xcrYtUM SYAU37OfXyao87OR5FOn/Siuy2iDbr4RFlTF40ByK8x5+4GRLuMSKkaKZtwWheAMsR8X fD+JtWYTcjfjYmp2wP+PsVHjIJZZG+/sQ6XB62eGBlU3J2aaT7ehspkayjJif3hrExG7 KVElPFSMeQPv4QBgZInubsUkuYj5qMH+zSm/FSKIbjVQ9wfrzKALDGeLcdD99RnJpYun kefv/52D/rQbkk/wUek2t+g5zeo/xudn4NgST957bm72xY2PRs7qjwTOwKKr8m1//KHx 1DmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=giOM4HnaEqC2qcIT64URAdWvI8eeLWVeP5WNigHDj+4=; b=IGxwxIZ/SCgLogaQ8kSnWwlhrttoFpSfMW1lpJGHkFIcxWsQUC8KgPJcH8ywrCr6Eq z9I/yARoc1aTo7aaE6KyM3K3RBJH88ZoZXkcaHbLJxfW/ltq0PmgQVRIvaciCXxdJtNC r5HeFs0GYaFpqS977t5gKOG4NsbMiDaQIUQn1nu8FbDZ+Pvpqg9OvC+vbxmzb4HCJ1uC dmp5F8olEzJRDJHOwqR0Og9bX5tQpeHK3VIY8qEEDF9s0KBk3G9cO0ZOpgYTOSfRBhWO bgMjT8WMYnZMM9koJOgZMThhnPtDahU0FagVTIkVK647q+RbOmNZFBZp77Dtse32sJHe kuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=dSdmwFVs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr6si22562694ejb.129.2021.07.26.02.57.37; Mon, 26 Jul 2021 02:58:00 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=dSdmwFVs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbhGZJPe (ORCPT + 99 others); Mon, 26 Jul 2021 05:15:34 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:10988 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232156AbhGZJPe (ORCPT ); Mon, 26 Jul 2021 05:15:34 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16Q9prAE015362; Mon, 26 Jul 2021 11:55:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=selector1; bh=giOM4HnaEqC2qcIT64URAdWvI8eeLWVeP5WNigHDj+4=; b=dSdmwFVs84e6GxHJeBNTvVS7ETgvRQw8DrKUPur4dm0nZHPY4gYTCDyxmO6Eo/RNcwHP 8hVgCORnJYPtPCyKs2OWmvR8pByM4fi2jBIWdeAqWwfzaEo8+d5TfAp0sis7N2oAo9YB 6MDt6uAMJ+PisQSa2LCmrdP3KqiD/y+p+3XAKZNSYqCtCn0eSgUkF0fILnEwyU6NeE5y TdbwXdJzhuyzsIMozagigFS2zztNaRJ6pt08iXDeqTm5ZmZWN95qn93OFsym7AxpIVDk FS0G40gghTNLJwhqQlCMeNJy1csf6rY3ogqlNWxm74jw440tUErMOL5rzuW/3ETCzsj7 /w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3a1swgrbqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jul 2021 11:55:43 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AB6A310002A; Mon, 26 Jul 2021 11:55:40 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9599F21B539; Mon, 26 Jul 2021 11:55:40 +0200 (CEST) Received: from gnbcxd0016.gnb.st.com (10.75.127.48) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Jul 2021 11:55:40 +0200 Date: Mon, 26 Jul 2021 11:55:32 +0200 From: Alain Volmat To: kernel test robot CC: , Linux Memory Management List , Mark Brown , Maxime Coquelin , Alexandre Torgue , , , , Subject: Re: [PATCH] spi: stm32: fix excluded_middle.cocci warnings Message-ID: <20210726095532.GA11839@gnbcxd0016.gnb.st.com> Mail-Followup-To: kernel test robot , 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 References: <202107140345.xyOobAtH-lkp@intel.com> <20210713191004.GA14729@5eb5c2cbef84> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210713191004.GA14729@5eb5c2cbef84> X-Disclaimer: ce message est personnel / this message is private X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-26_05:2021-07-26,2021-07-26 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks. Reviewed-by: Alain Volmat On Wed, Jul 14, 2021 at 03:10:04AM +0800, kernel test robot wrote: > 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; > } >