diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-10-28 16:53:13 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 16:53:13 -0400 |
commit | b4558ea93d66a43f7990d26f145fd4c54a01c9bf (patch) | |
tree | 70aa8ba4864f8ee994b7f5278f5045af6a646d34 /drivers/net/tg3.c | |
parent | 7380a78a973a8109c13cb0e47617c456b6f6e1f5 (diff) |
drivers/net: Remove pointless checks for NULL prior to calling kfree()
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 6 |
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 | */ |
3919 | static void tg3_free_consistent(struct tg3 *tp) | 3919 | static 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); |