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

Commit 1c3bae6e authored by Qianqian Xie's avatar Qianqian Xie Committed by David S. Miller
Browse files

net: hns: remove useless variable assignment and comment



The variable head in hns_nic_tx_fini_pro has read a value, but it is
obviously no use. The patch will fix it.
And the comment is nothing to do with the routine, so it has to be removed

Signed-off-by: default avatarQianqian Xie <xieqianqian@huawei.com>
Signed-off-by: default avatarYisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 055a9417
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -913,10 +913,7 @@ static int hns_nic_tx_poll_one(struct hns_nic_ring_data *ring_data,
static void hns_nic_tx_fini_pro(struct hns_nic_ring_data *ring_data)
static void hns_nic_tx_fini_pro(struct hns_nic_ring_data *ring_data)
{
{
	struct hnae_ring *ring = ring_data->ring;
	struct hnae_ring *ring = ring_data->ring;
	int head = ring->next_to_clean;
	int head = readl_relaxed(ring->io_base + RCB_REG_HEAD);

	/* for hardware bug fixed */
	head = readl_relaxed(ring->io_base + RCB_REG_HEAD);


	if (head != ring->next_to_clean) {
	if (head != ring->next_to_clean) {
		ring_data->ring->q->handle->dev->ops->toggle_ring_irq(
		ring_data->ring->q->handle->dev->ops->toggle_ring_irq(