Re: [PATCH net-next 1/1] forcedeth: remove unnecessary variable

2017-12-07 Thread Yanjun Zhu
On 2017/12/8 3:07, David Miller wrote: From: Zhu Yanjun Date: Wed, 6 Dec 2017 23:15:15 -0500 Since both tx_ring and first_tx are the head of tx ring, it not necessary to use two variables. So first_tx is removed. These are not variables, they are structure members. Sure. These 2 structure

Re: [PATCH net-next 1/1] forcedeth: remove unnecessary variable

2017-12-07 Thread David Miller
From: Zhu Yanjun Date: Wed, 6 Dec 2017 23:15:15 -0500 > Since both tx_ring and first_tx are the head of tx ring, it not > necessary to use two variables. So first_tx is removed. These are not variables, they are structure members.

[PATCH net-next 1/1] forcedeth: remove unnecessary variable

2017-12-06 Thread Zhu Yanjun
Since both tx_ring and first_tx are the head of tx ring, it not necessary to use two variables. So first_tx is removed. CC: Srinivas Eeda CC: Joe Jin CC: Junxiao Bi Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/nvidia/forcedeth.c | 21 +++-- 1 file changed, 11 insertions(