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

Commit e29dd443 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller
Browse files

net: qlcnic: Deletion of unnecessary memset



There is no need to memset memory allocated with vzalloc.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9061cb02
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2403,7 +2403,6 @@ int qlcnic_alloc_tx_rings(struct qlcnic_adapter *adapter,
			qlcnic_free_tx_rings(adapter);
			return -ENOMEM;
		}
		memset(cmd_buf_arr, 0, TX_BUFF_RINGSIZE(tx_ring));
		tx_ring->cmd_buf_arr = cmd_buf_arr;
		spin_lock_init(&tx_ring->tx_clean_lock);
	}