From patchwork Fri Sep 2 20:24:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9311595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8F47160772 for ; Fri, 2 Sep 2016 20:24:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DE0E2983D for ; Fri, 2 Sep 2016 20:24:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DB3F2985E; Fri, 2 Sep 2016 20:24:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 099522983D for ; Fri, 2 Sep 2016 20:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbcIBUYy (ORCPT ); Fri, 2 Sep 2016 16:24:54 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36854 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbcIBUYy (ORCPT ); Fri, 2 Sep 2016 16:24:54 -0400 Received: by mail-wm0-f67.google.com with SMTP id i138so4217277wmf.3 for ; Fri, 02 Sep 2016 13:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=QD/Cm9IxoDbNk2GHSTZhZK+av8ySPdGJUp7r1UHKso0=; b=Zr2PpVGiA0WJPWw8+Ztd6iTV5DbegpkA76nr/2MVplCMpLuRgog6sMzfW5f3RNRsXR WavcCqUTSCqc1EuNgSWUN+ZCR5668VvJ2+Roa5J/hdbl+usHBUtEv1MoFw/Y3hWr76p/ pOrat3t38HPrfnu1N1WGrmmBLfhBappAjHvNj7WB5LISGpqq1q/LYafnr+XiM+cmo1NG g48TiBHL3okpXRvPPp0ui17NHwU9SOUVcgrbbLh1kh1SVDDTszor9cOshDRcZJi2OIS6 /VVs/XLODC4tvgxFGan1cy4sheSAxRG7zmbPIEO+SMLT/23f1rsGWNMS83BaMBfv5LFn aRJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QD/Cm9IxoDbNk2GHSTZhZK+av8ySPdGJUp7r1UHKso0=; b=BWXydyPfCrd/GPhArnilJALgcUnhUyAjjr/bmZAB5xf14bSNufIXV8LT7tqsyoI9eh nxQWWN1sFmLu+XqnTn52mIj/3iYLANL6vkAgSoVuw8QzMl12MyC1G/wcMTPDZsYDr+gQ KC3Xq7l5SfJv7vkYx/+zlAjqXCnw7eUcnrxvYYltLu92bEddycssW6qcEt6Z6KT2moV2 adRVoA0J/YVJnWvXEDHq20bOaSsBGt+m/7oWQvkV/ReooXAsWm9JRh9XTinwJQesiCb3 G82NnjmS73oDEC2BCfIrzzyY0hmtgk88dNB3P+cnpFQuC3G+jnOjynP1crFV43K2/XQq +Krg== X-Gm-Message-State: AE9vXwOvC9W+u3KuAx0qGt3mqFauxw4/Yjx2AZIqegHnIEmeROSxww5TdZ4Z8ACvLhrbrw== X-Received: by 10.28.196.136 with SMTP id u130mr4690366wmf.83.1472847892540; Fri, 02 Sep 2016 13:24:52 -0700 (PDT) Received: from ?IPv6:2003:62:5f43:9500:39ed:a1fb:9a43:e02d? (p200300625F43950039EDA1FB9A43E02D.dip0.t-ipconnect.de. [2003:62:5f43:9500:39ed:a1fb:9a43:e02d]) by smtp.googlemail.com with ESMTPSA id ka5sm11388290wjb.7.2016.09.02.13.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 13:24:52 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v2 10/23] spi: fsl-espi: remove unneeded check in fsl_espi_do_trans To: Mark Brown References: Cc: "linux-spi@vger.kernel.org" Message-ID: Date: Fri, 2 Sep 2016 22:24:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SPI core takes care that both values are always populated. Signed-off-by: Heiner Kallweit --- v2: - switch order of patches to do trivial changes first (was patch 14 of the series before) --- drivers/spi/spi-fsl-espi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 51696a6..8e6ef9b 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -300,8 +300,7 @@ static void fsl_espi_do_trans(struct spi_message *m, trans.tx_buf = espi_trans->tx_buf; trans.rx_buf = espi_trans->rx_buf; - if (trans.bits_per_word || trans.speed_hz) - fsl_espi_setup_transfer(spi, &trans); + fsl_espi_setup_transfer(spi, &trans); if (trans.len) status = fsl_espi_bufs(spi, &trans);