From patchwork Tue Jul 17 13:43:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 10529421 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 5E060600F4 for ; Tue, 17 Jul 2018 13:43:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FE6B205A8 for ; Tue, 17 Jul 2018 13:43:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43E8729038; Tue, 17 Jul 2018 13:43:31 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 DE73C205A8 for ; Tue, 17 Jul 2018 13:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731607AbeGQOQM (ORCPT ); Tue, 17 Jul 2018 10:16:12 -0400 Received: from mail.bootlin.com ([62.4.15.54]:40844 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731497AbeGQOQM (ORCPT ); Tue, 17 Jul 2018 10:16:12 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 98C4920908; Tue, 17 Jul 2018 15:43:27 +0200 (CEST) Received: from mc-bl-xps13.lan (AAubervilliers-681-1-27-161.w90-88.abo.wanadoo.fr [90.88.147.161]) by mail.bootlin.com (Postfix) with ESMTPSA id 5F95D206F3; Tue, 17 Jul 2018 15:43:17 +0200 (CEST) From: Maxime Chevallier To: Mark Brown Cc: Maxime Chevallier , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com Subject: [PATCH 1/5] spi: imx: Remove duplicate variable assignments Date: Tue, 17 Jul 2018 15:43:07 +0200 Message-Id: <20180717134311.26780-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180717134311.26780-1-maxime.chevallier@bootlin.com> References: <20180717134311.26780-1-maxime.chevallier@bootlin.com> 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 Some fields in struct spi_imx_data are assigned a different value twice in a row, in spi_imx_setupxfer. Signed-off-by: Maxime Chevallier --- drivers/spi/spi-imx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index d3b21faf6b1f..d75153c995af 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1106,8 +1106,6 @@ static int spi_imx_setupxfer(struct spi_device *spi, if (spi_imx->devtype_data->dynamic_burst && !spi_imx->slave_mode) { u32 mask; - spi_imx->dynamic_burst = 0; - spi_imx->remainder = 0; spi_imx->read_u32 = 1; mask = (1 << spi_imx->bits_per_word) - 1;