From patchwork Sun Feb 9 03:25:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3611611 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 63DFA9F2D6 for ; Sun, 9 Feb 2014 03:25:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C969201BB for ; Sun, 9 Feb 2014 03:25:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D80BF201BF for ; Sun, 9 Feb 2014 03:25:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbaBIDZl (ORCPT ); Sat, 8 Feb 2014 22:25:41 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:61960 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbaBIDZk (ORCPT ); Sat, 8 Feb 2014 22:25:40 -0500 Received: by mail-pd0-f170.google.com with SMTP id p10so4767335pdj.1 for ; Sat, 08 Feb 2014 19:25:40 -0800 (PST) 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=QtaeKTenjJ6+mMKM/0d6rsMocT+rZMvzx/1ocWV6CVw=; b=H/66FxtaAKiOgax5M3FTUyyuQF771XEbErKe3RITzCvHk4Xan7+1X2UL46YcSMnjfO YI1iiCi8sq+5yaab8Xsax9i0FEtiGYY8JtxvFnPDvVhchgn1vlknYSyCWys+HhPTS+Sh EZxHHRxfCiLfeNmoLYluwc25M7IqhPE9ofWoArvB5ASnBiVQmE/LYbRXZ80VChmcCcBA N4CuTSvztHtrMODzSgn/8J2r2tLoEXplzWagWF3sdTLfzIR7zqopJVrIn1toeWtZw/pC PooWIfKoMtrqkuU5Ia9uoXgTdmZz6/j9qFBZ/bsIfAUx+UiXeXxQXt7XXsqFU5xMOhcl EQ5w== X-Gm-Message-State: ALoCoQnZ/DcxsuoAC/w+c5YJCTFIl66kXJiRDJSYaPSUmWHhLWyw5FNBXlB1y9eWypMW9bsh8bPN X-Received: by 10.66.119.172 with SMTP id kv12mr17489213pab.34.1391916340234; Sat, 08 Feb 2014 19:25:40 -0800 (PST) Received: from [192.168.0.102] (218-164-136-128.dynamic.hinet.net. [218.164.136.128]) by mx.google.com with ESMTPSA id zc6sm74036486pab.18.2014.02.08.19.25.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 19:25:39 -0800 (PST) Message-ID: <1391916334.20382.2.camel@phoenix> Subject: [PATCH] spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback() From: Axel Lin To: Mark Brown Cc: Sonic Zhang , Steven Miao , linux-spi@vger.kernel.org, "Jiang, Scott" Date: Sun, 09 Feb 2014 11:25:34 +0800 X-Mailer: Evolution 3.6.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=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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-bfin5xx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index f0f195a..d0f36ac 100644 --- a/drivers/spi/spi-bfin5xx.c +++ b/drivers/spi/spi-bfin5xx.c @@ -350,7 +350,6 @@ static void *bfin_spi_next_transfer(struct bfin_spi_master_data *drv_data) static void bfin_spi_giveback(struct bfin_spi_master_data *drv_data) { struct bfin_spi_slave_data *chip = drv_data->cur_chip; - struct spi_transfer *last_transfer; unsigned long flags; struct spi_message *msg; @@ -362,9 +361,6 @@ static void bfin_spi_giveback(struct bfin_spi_master_data *drv_data) queue_work(drv_data->workqueue, &drv_data->pump_messages); spin_unlock_irqrestore(&drv_data->lock, flags); - last_transfer = list_entry(msg->transfers.prev, - struct spi_transfer, transfer_list); - msg->state = NULL; if (!drv_data->cs_change)