From patchwork Thu Aug 25 04:48:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9298643 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 E6BD460B16 for ; Thu, 25 Aug 2016 04:54:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D511A291BE for ; Thu, 25 Aug 2016 04:54:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFB51291CA; Thu, 25 Aug 2016 04:54:52 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 7CA47291C6 for ; Thu, 25 Aug 2016 04:54:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754537AbcHYEyr (ORCPT ); Thu, 25 Aug 2016 00:54:47 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33175 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754463AbcHYEx1 (ORCPT ); Thu, 25 Aug 2016 00:53:27 -0400 Received: by mail-wm0-f66.google.com with SMTP id o80so5646815wme.0 for ; Wed, 24 Aug 2016 21:53:26 -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=Bu+G8afxWl5ORr9GMlThzVW2d16oO5UyWYrNLRm86Wo=; b=UmYF6Y4gznf+LL9CndGuQ0y1wYs6ODMpWCg6mQHeQpTZ3ICTQ0Ot13SlR/e5rVzwV+ HNs5xYfqklm/6WqJQN6X3dpWOUxT0KGeCp9jM9rgWNj0EEMlyQijsC4qpmxOv8SyYnP7 DdCijSjJOxnn9OyVnvYevrXP+mNSKyVWi85oJ7G0tAiU+2DyP3FpwLVbtRlVQpqFHw2o bJQbDF34FCue/c7I1Khz/lBLnbjDhyJ7HonauxMS/oEtZSz7CNJvYJICTPDR/wQvjQ5r CMH2OJmEVaJAlngDxT58tfi6Ys6MfMusIpTKLxUyyzuEgIYxrKIZNUnImfZd1XzXVyxC DFaw== 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=Bu+G8afxWl5ORr9GMlThzVW2d16oO5UyWYrNLRm86Wo=; b=T1ClmHfBJAulJZS775PIBOOS3B3u6WJjCC12MBr+wedglbITpDFwFI0QnH2rfEwmk9 e939JrnY0Y0wCMXYuKubIwalNK5IBPyxw9lMwDYIrDe3KLPoaEwkY19Lw4ugx1AlFGoH bta11r82xiRFvsixLHL5yRITGJIIMkMuFU2TbY+2q+fFQQu8v6hUY61oGmsiDTAtvM+t ydBGqGjP/6Fj5Ffdv3syi40HscS1rDVpo+3vPImG//1cwfnxo9EEQEZP880D9mK4weCE 9PSDVtLx7CwSCDor0cfJtuSO386FFvONLb3dAlQdrAJrAOaSL6ZeqrizH2CYolxGtgnQ sFbA== X-Gm-Message-State: AEkoouslli+4rt/VIW2HUSeezvKMWQV3TrBtC9yuhbvGbnmoazBiiH8JAbsgM4eKotkhsw== X-Received: by 10.28.126.75 with SMTP id z72mr28588694wmc.74.1472100805386; Wed, 24 Aug 2016 21:53:25 -0700 (PDT) Received: from ?IPv6:2003:62:5f43:9500:dd82:2805:e44f:720e? (p200300625F439500DD822805E44F720E.dip0.t-ipconnect.de. [2003:62:5f43:9500:dd82:2805:e44f:720e]) by smtp.googlemail.com with ESMTPSA id o4sm13098794wjd.15.2016.08.24.21.53.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 21:53:25 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 14/23] spi: fsl-espi: remove unneeded check in fsl_espi_do_trans To: Mark Brown References: Cc: "linux-spi@vger.kernel.org" Message-ID: <2378fe6e-29de-a874-4a19-f75bc9af7f1d@gmail.com> Date: Thu, 25 Aug 2016 06:48:48 +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 --- 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 6d06e14..4c64012 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -284,8 +284,7 @@ static int fsl_espi_do_trans(struct spi_message *m, struct spi_transfer *trans) trans->delay_usecs = max(first->delay_usecs, t->delay_usecs); } - if (trans->bits_per_word || trans->speed_hz) - fsl_espi_setup_transfer(spi, trans); + fsl_espi_setup_transfer(spi, trans); if (trans->len) ret = fsl_espi_bufs(spi, trans);