From patchwork Sun Sep 4 07:57:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9312405 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 2560B608A0 for ; Sun, 4 Sep 2016 08:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 146F7287DA for ; Sun, 4 Sep 2016 08:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0623D2881F; Sun, 4 Sep 2016 08:07:29 +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=-4.4 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 B562C2898B for ; Sun, 4 Sep 2016 08:07:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751015AbcIDIH1 (ORCPT ); Sun, 4 Sep 2016 04:07:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33856 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbcIDIH0 (ORCPT ); Sun, 4 Sep 2016 04:07:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id v143so8664133wmv.1 for ; Sun, 04 Sep 2016 01:07:25 -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=YtaegvSjPHkNeb0hnxNRdCLMEPXf/xQAGdL72KIUBKM=; b=cUK1tBDrmEwT1pprTOQVVeBvGrsFpWYe6dpHuWw4AYS9bCFIcnlUiypq96vmKx2Bls AeshdUf2SpU+m4SdZ0ab2CpgSr8EZ14vi1frm7ue0qYCiFt+lv+1wQG3ZWGT2rR6ScCn J2XawLu2+/5URqBsJSz9UXVqN5oOxBYno43sHTodAQHJl4ZddsTsdajjVQnQLmMs3JeA 1BgyFmtOzykDrDGjp2Yg0kzUGXWy4sX55dIpBgS04pELsVbBxkNR/eb1Vgisd51AkBeI cICKoMmqO0G8JoRQ0+JbaG0kb6LS1HMIoeDyoqwufYp4Lz7WCW7CVAy6bTwU9mJ4a28L Rskg== 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=YtaegvSjPHkNeb0hnxNRdCLMEPXf/xQAGdL72KIUBKM=; b=epGFKwVLqgdqoZs06EwZE45L8+kDFAjkrQzcalirdFOjdi/oGr1Vxx1WHz7mqpz+/U mNUiSNN89AQWGgGPfLi3DbjOfo9Lxkc/HfjM4+DwJITqssLuXyMhE7eJsybZr6FHCSgt 2lyOqqyASj98v+XyF39Vk9Wh9nvSR73tZIaa5Y60kHU3cPOuCusyE10KRv4w0Fz1jE7S zXjQ62fNQlu/YVtEb4vYV3fXXdA5miqAYOIo7SOdiWSs6Tn/njFV7mjpOyL/Ohmn74jP yFQOu+HFdMW3phzy2OHblJfx24X6r+QlCXm85DQwoeIgjZMVc7TV/BrLfP0dzpLfZc4D +wcQ== X-Gm-Message-State: AE9vXwPU6+06XvxCC6tqkTQi9WGNpU76GXUkpJ8EUdrzOnxaPOp1N94K1wBhHrhKav3Adg== X-Received: by 10.194.243.8 with SMTP id wu8mr25613597wjc.178.1472976444663; Sun, 04 Sep 2016 01:07:24 -0700 (PDT) Received: from ?IPv6:2003:62:5f43:9500:c1f5:c528:a3d:f8c4? (p200300625F439500C1F5C5280A3DF8C4.dip0.t-ipconnect.de. [2003:62:5f43:9500:c1f5:c528:a3d:f8c4]) by smtp.googlemail.com with ESMTPSA id o2sm19864855wjo.3.2016.09.04.01.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 01:07:24 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v2 03/18] spi: fsl-espi: remove unneeded check in fsl_espi_do_trans To: Mark Brown References: Cc: "linux-spi@vger.kernel.org" Message-ID: <5a69cfbe-d636-c991-0e59-4b554a081490@gmail.com> Date: Sun, 4 Sep 2016 09:57:18 +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 --- 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);