aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 551c9449322d..b547233ad9f7 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3918,10 +3918,8 @@ static void tg3_init_rings(struct tg3 *tp)
3918 */ 3918 */
3919static void tg3_free_consistent(struct tg3 *tp) 3919static void tg3_free_consistent(struct tg3 *tp)
3920{ 3920{
3921 if (tp->rx_std_buffers) { 3921 kfree(tp->rx_std_buffers);
3922 kfree(tp->rx_std_buffers); 3922 tp->rx_std_buffers = NULL;
3923 tp->rx_std_buffers = NULL;
3924 }
3925 if (tp->rx_std) { 3923 if (tp->rx_std) {
3926 pci_free_consistent(tp->pdev, TG3_RX_RING_BYTES, 3924 pci_free_consistent(tp->pdev, TG3_RX_RING_BYTES,
3927 tp->rx_std, tp->rx_std_mapping); 3925 tp->rx_std, tp->rx_std_mapping);