From patchwork Sun Jul 6 18:32:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 4490821 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@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 D61B09F36A for ; Sun, 6 Jul 2014 18:32:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 268892022D for ; Sun, 6 Jul 2014 18:32:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4730220219 for ; Sun, 6 Jul 2014 18:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378AbaGFSco (ORCPT ); Sun, 6 Jul 2014 14:32:44 -0400 Received: from smtp-out-155.synserver.de ([212.40.185.155]:1501 "EHLO smtp-out-155.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbaGFSco (ORCPT ); Sun, 6 Jul 2014 14:32:44 -0400 Received: (qmail 12834 invoked by uid 0); 6 Jul 2014 18:32:42 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 12384 Received: from ppp-46-244-166-46.dynamic.mnet-online.de (HELO lars-adi-laptop.fritz.box) [46.244.166.46] by 217.119.54.73 with SMTP; 6 Jul 2014 18:32:42 -0000 From: Lars-Peter Clausen To: Vinod Koul , Dan Williams Cc: Boojin Kim , dmaengine@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 07/15] dmaengine: pl330: Remove unused mc_len field from _pl330_req struct Date: Sun, 6 Jul 2014 20:32:24 +0200 Message-Id: <1404671552-502-8-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1404671552-502-1-git-send-email-lars@metafoo.de> References: <1404671552-502-1-git-send-email-lars@metafoo.de> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.6 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 The mc_len is initialized but its value is never read again, so remove it. Signed-off-by: Lars-Peter Clausen --- drivers/dma/pl330.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 80a17a8..453ce10 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -398,8 +398,6 @@ enum pl330_cond { struct _pl330_req { u32 mc_bus; void *mc_cpu; - /* Number of bytes taken to setup MC for the req */ - u32 mc_len; struct pl330_req *r; }; @@ -999,7 +997,6 @@ static void mark_free(struct pl330_thread *thrd, int idx) struct _pl330_req *req = &thrd->req[idx]; _emit_END(0, req->mc_cpu); - req->mc_len = 0; thrd->req_running = -1; } @@ -1536,8 +1533,8 @@ static int pl330_submit_req(void *ch_id, struct pl330_req *r) /* Hook the request */ thrd->lstenq = idx; - thrd->req[idx].mc_len = _setup_req(0, thrd, idx, &xs); thrd->req[idx].r = r; + _setup_req(0, thrd, idx, &xs); ret = 0;