Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eb94628 authored by ZHAO Gang's avatar ZHAO Gang Committed by Greg Kroah-Hartman
Browse files

staging: et131x: delete unnecessary variable in function et131x_init



Variable u32 numrfd is not necessary in this function.

Signed-off-by: default avatarZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1ff70a7c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;