]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mlx4: Avoid assigning a value to ring_cons but not used it anymore...
authorLuo Jiaxing <luojiaxing@huawei.com>
Sat, 12 Sep 2020 08:08:15 +0000 (16:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Sep 2020 01:21:56 +0000 (18:21 -0700)
commit2e18f743804d72a1a77bfb1999e1bab5cd7b9eb7
tree684ca65742253f31a3b8ca188a09f9f5e6e33053
parentb67a30c3ff9e553256f743b4e3a7c605c9577a49
net: ethernet: mlx4: Avoid assigning a value to ring_cons but not used it anymore in mlx4_en_xmit()

We found a set but not used variable 'ring_cons' in mlx4_en_xmit(), it will
cause a warning when build the kernel. And after checking the commit record
of this function, we found that it was introduced by a previous patch.

So, We delete this redundant assignment code.

Fixes: 0866263c32a7 ("net/mlx4_en: Wake TX queues only when there's enough room")
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c