From patchwork Fri Sep 4 09:50:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 514364 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id BD8671402AC for ; Fri, 4 Sep 2015 19:50:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 806194B7B1; Fri, 4 Sep 2015 11:50:41 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CKO-dscusK8w; Fri, 4 Sep 2015 11:50:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A5EB94B78E; Fri, 4 Sep 2015 11:50:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B246F4B78E for ; Fri, 4 Sep 2015 11:50:37 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kVi0h8y6Dyw5 for ; Fri, 4 Sep 2015 11:50:37 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 830E04B78B for ; Fri, 4 Sep 2015 11:50:33 +0200 (CEST) Received: from mail.nefkom.net (unknown [192.168.8.184]) by mail-out.m-online.net (Postfix) with ESMTP id 3n6vQ00nWqz3hhvW; Fri, 4 Sep 2015 11:50:32 +0200 (CEST) X-Auth-Info: 6pYdHLLHcNZxlvPHVfJhqld/jl6IT7JLqLskATLvb1I= Received: from chi.lan (unknown [195.140.253.167]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3n6vPz5LrdzvdWt; Fri, 4 Sep 2015 11:50:31 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Fri, 4 Sep 2015 11:50:28 +0200 Message-Id: <1441360228-4562-1-git-send-email-marex@denx.de> X-Mailer: git-send-email 2.1.4 Cc: Marek Vasut , Joe Hershberger Subject: [U-Boot] [PATCH] net: altera_tse: Zap unused variable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Zap variable which is set but never used. Signed-off-by: Marek Vasut Cc: Dinh Nguyen Cc: Joe Hershberger Tested-by: Thomas Chou --- drivers/net/altera_tse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index c4fd6ec..ad3bd1e 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -182,12 +182,10 @@ static int alt_sgdma_do_sync_transfer(volatile struct alt_sgdma_registers *dev, static int alt_sgdma_do_async_transfer(volatile struct alt_sgdma_registers *dev, volatile struct alt_sgdma_descriptor *desc) { - unsigned int status; int counter = 0; /* Wait for any pending transfers to complete */ alt_sgdma_print_desc(desc); - status = dev->status; counter = 0; while (dev->status & ALT_SGDMA_STATUS_BUSY_MSK) {