diff options
author | ZHAO Gang <gamerh2o@gmail.com> | 2013-12-04 11:24:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-05 03:21:13 +0400 |
commit | 4eb946285aa07669568af3e0a19f694409ccc0d4 (patch) | |
tree | 541d2db42d109f10371b83e601daafa9e7e969fd /drivers | |
parent | 1ff70a7c99ac74aadba6f1cf5d21730ec9eb483a (diff) | |
download | linux-4eb946285aa07669568af3e0a19f694409ccc0d4.tar.xz |
staging: et131x: delete unnecessary variable in function et131x_init
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/et131x/et131x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index fe6619a520a8..e3a71d3fafcc 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -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; |