net: altera_tse: Zap unused variable
authorMarek Vasut <marex@denx.de>
Fri, 4 Sep 2015 09:50:28 +0000 (11:50 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 4 Sep 2015 14:09:44 +0000 (16:09 +0200)
Zap variable which is set but never used.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Thomas Chou <thomas@wytron.com.tw>
drivers/net/altera_tse.c

index c4fd6ec2e96100339492239930a161030082a222..ad3bd1e2124059f7da1fed4f37859f7ec6e7f69e 100644 (file)
@@ -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) {