]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: et131x: delete unnecessary variable in function et131x_init
authorZHAO Gang <gamerh2o@gmail.com>
Wed, 4 Dec 2013 07:24:13 +0000 (15:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 23:21:13 +0000 (15:21 -0800)
Variable u32 numrfd is not necessary in this function.

Signed-off-by: ZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index fe6619a520a8f3c1209898ec5e747ddb84cff9d3..e3a71d3fafccc8dbae119a654953e0dddce5db27 100644 (file)
@@ -2450,7 +2450,6 @@ static int et131x_init_recv(struct et131x_adapter *adapter)
 {
        struct rfd *rfd;
        u32 rfdct;
-       u32 numrfd = 0;
        struct rx_ring *rx_ring;
 
        /* Setup some convenience pointers */
@@ -2467,9 +2466,8 @@ static int et131x_init_recv(struct et131x_adapter *adapter)
                /* Add this RFD to the recv_list */
                list_add_tail(&rfd->list_node, &rx_ring->recv_list);
 
-               /* Increment both the available RFD's, and the total RFD's. */
+               /* Increment the available RFD's */
                rx_ring->num_ready_recv++;
-               numrfd++;
        }
 
        return 0;