]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: qlcnic: Deletion of unnecessary memset
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Mon, 13 Jul 2015 19:51:38 +0000 (21:51 +0200)
committerEthan Zhao <ethan.zhao@oracle.com>
Tue, 20 Oct 2015 02:40:34 +0000 (11:40 +0900)
Orabug: 22066190

There is no need to memset memory allocated with vzalloc.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c

index 2f6cc423ab1dff21cf810c5e6737af58dbae0686..7dbab3c20db5811d333f8f817769b44b79d57bbf 100644 (file)
@@ -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);
        }