Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp505187imm; Wed, 20 Jun 2018 01:51:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIFIb/8CgLk8NJA+nzh8dgNCH2W1DrzpgdtyuEzuLW16YBsrYf9kdnm0YzT7cYZxjjlQUJz X-Received: by 2002:aa7:854e:: with SMTP id y14-v6mr21352393pfn.165.1529484691358; Wed, 20 Jun 2018 01:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529484691; cv=none; d=google.com; s=arc-20160816; b=TPCRGqSZuKryP2kVjxSnXSrJCq7bX38GNbgVXD/AX+vwXJvJIGYNu/jQt+tekuBD2N p12lvasmvSgz7SUmtEWsN91sriIGW3r9UkLuYlYl2CYqYLYmyHguElGbCovmazoP+CiN uESvDcPox5H3NGKR1xZJM2buWKhahVM87qZ9FBmTaL4LbNbImz5J+gSdF5lyFNMEa/nZ edJU6LvHqlJWdaqsCNZt9dhggAP9xJ3CiHl8jiXwQEh1xr3h6i6ke3UiF4zqo4BUc066 nUbtSPSlg9MHd7DuAAs5CltDYStm9gjSuE3ufjNhi0V3UanqdoH6rH8Tc8NV5myaUlbP Z+5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=+U1jP891YJnJLkkrst9oSOe+yNLKRXwQOSXZwRBpMAk=; b=ljQW4cbIEp9dLb0MPEaBQNdUWh3+zTEdcLSVSX9A4osqj+bcPBaig3hUJ60CgkYEnr s/KSJc80kV8Vt/OoAAPkTWsDWKivml3lvA3WefT24+VxwOEUY3WNE9dTng8+g3r1Jq+R 1X+CEIo5Lt4/nxmjMku/1Pk4d07SWhnk4DAxPHUuJjgoqKiuIorxIdOCZ8n5BIa/9Il+ UPh2/kliZwobIb0A8iP4gI1/AG3XCIsDVVFjNo6VORVgs5lIo4YsN9wkKalSV0Uhgxvq 4ywAy0mGhEfBq5arUWDTD35oI6qjzqQMon0hvcbkzTVT1TbLKnGLZHxeZsFEdusrvATL AXfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e90-v6si2079684plb.437.2018.06.20.01.51.17; Wed, 20 Jun 2018 01:51:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933161AbeFTIud (ORCPT + 99 others); Wed, 20 Jun 2018 04:50:33 -0400 Received: from mail.hundeboll.net ([88.198.92.70]:47866 "EHLO mail.hundeboll.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932850AbeFTIu3 (ORCPT ); Wed, 20 Jun 2018 04:50:29 -0400 X-Greylist: delayed 583 seconds by postgrey-1.27 at vger.kernel.org; Wed, 20 Jun 2018 04:50:27 EDT Received: from [10.0.0.161] (unknown [85.184.147.232]) by mail.hundeboll.net (Postfix) with ESMTPSA id 2D6A01C08CB; Wed, 20 Jun 2018 10:40:41 +0200 (CEST) Subject: Re: [PATCH 01/12] spi: spi-fsl-dspi: Drop unreachable else if statement To: Esben Haabendal , Mark Brown , linux-spi@vger.kernel.org Cc: Kurt Kanzenbach , Angelo Dureghello , Nikita Yushchenko , Sanchayan Maity , Yuan Yao , linux-kernel@vger.kernel.org, Esben Haabendal References: <20180620073442.20913-1-esben.haabendal@gmail.com> <20180620073442.20913-2-esben.haabendal@gmail.com> From: =?UTF-8?Q?Martin_Hundeb=c3=b8ll?= Message-ID: <84f8dca3-d1af-5190-270b-5f5319ae4987@geanix.com> Date: Wed, 20 Jun 2018 10:40:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180620073442.20913-2-esben.haabendal@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-20 09:34, Esben Haabendal wrote: > From: Esben Haabendal > > The if statement just above this if/else statement triggers on the same > condition, and then invalidates it. > > Signed-off-by: Esben Haabendal > Cc: Martin Hundebøll For the entire series: Acked-by: Martin Hundebøll > --- > drivers/spi/spi-fsl-dspi.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c > index 0630962ce442..3ca9b9608801 100644 > --- a/drivers/spi/spi-fsl-dspi.c > +++ b/drivers/spi/spi-fsl-dspi.c > @@ -593,8 +593,7 @@ static int dspi_eoq_write(struct fsl_dspi *dspi) > dspi_pushr |= SPI_PUSHR_EOQ; > if ((dspi->cs_change) && (!dspi->len)) > dspi_pushr &= ~SPI_PUSHR_CONT; > - } else if (tx_word && (dspi->len == 1)) > - dspi_pushr |= SPI_PUSHR_EOQ; > + } > > regmap_write(dspi->regmap, SPI_PUSHR, dspi_pushr); > > -- Kind regards, Martin Hundebøll Embedded Linux Consultant +45 61 65 54 61 martin@geanix.com Geanix IVS DK39600706