From patchwork Fri Mar 21 14:59:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3874861 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4F24E9F382 for ; Fri, 21 Mar 2014 15:00:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8472B20295 for ; Fri, 21 Mar 2014 15:00:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B80732028D for ; Fri, 21 Mar 2014 15:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759578AbaCUPAF (ORCPT ); Fri, 21 Mar 2014 11:00:05 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:51441 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221AbaCUPAE (ORCPT ); Fri, 21 Mar 2014 11:00:04 -0400 Received: by mail-pd0-f175.google.com with SMTP id x10so2435204pdj.6 for ; Fri, 21 Mar 2014 08:00:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=2S7HE8wnMybGW6WpwZ/Kqv7raprDhKLlJz1L9QLhsbI=; b=bm5Kua3kAofwsTYkYL/VatGjLrDnKOtpc2HT+bvM1T40Xw4eHt4HnP0LMRiAy5SyuR EpeVqeDrRntTIPdivuspIM+ueXORn+SeSOPPRFHu0xc/TVxBQtQHlCyQGsxr/26RXGY+ D39tr5ahWTKsue77DwtrXDdgOmL5te7uAlaYJqQZqieosYnyDH4NJI34ymF+kUxUyV33 ZG+wWH1UCeZFwaVCSUweeUl0UYLQFiemm89xy4WTo+2oUEBD/jqqGkzJngsHPTWUcj9J DMBnlLz3ZObyWV2PNdou9gzqVlU+qtzpLU5SOwTJSNMAgFLPwnGE4cHDo2cpkt8hmP7X NKqw== X-Gm-Message-State: ALoCoQkqBIuRt0aN2RGQRTBXgY26WMtk3xxEb8yUr3nhg2TN+t9dX35NmZp6ldlBhm/TB63lUBNl X-Received: by 10.68.203.135 with SMTP id kq7mr53906272pbc.85.1395414003113; Fri, 21 Mar 2014 08:00:03 -0700 (PDT) Received: from [192.168.0.102] (218-164-139-5.dynamic.hinet.net. [218.164.139.5]) by mx.google.com with ESMTPSA id sy2sm10372044pbc.28.2014.03.21.08.00.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Mar 2014 08:00:02 -0700 (PDT) Message-ID: <1395413998.9974.3.camel@phoenix> Subject: [PATCH] spi: fsl-espi: Remove unused bits_per_word variable in fsl_espi_bufs From: Axel Lin To: Mark Brown Cc: Hou Zhiqiang , Sebastian Andrzej Siewior , linux-spi@vger.kernel.org Date: Fri, 21 Mar 2014 22:59:58 +0800 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Axel Lin --- drivers/spi/spi-fsl-espi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 428dc7a..6fb2b75 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -219,13 +219,8 @@ static int fsl_espi_bufs(struct spi_device *spi, struct spi_transfer *t) struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); struct fsl_espi_reg *reg_base = mpc8xxx_spi->reg_base; unsigned int len = t->len; - u8 bits_per_word; int ret; - bits_per_word = spi->bits_per_word; - if (t->bits_per_word) - bits_per_word = t->bits_per_word; - mpc8xxx_spi->len = t->len; len = roundup(len, 4) / 4;