diff options
author | Michael Krufky <mkrufky@m1k.net> | 2006-01-09 12:25:12 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:25:12 -0500 |
commit | 35dc0fefb18eea1b4180a8fafbb83db6a9b7c401 (patch) | |
tree | 9ffe72649cb2bd4b134a683cc345cee3290bef65 | |
parent | f5b90a27ffe25c428329edae5b1ef81e1a8e383f (diff) |
V4L/DVB (3086): vfree(NULL) is legal.
- vfree(NULL) is legal.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c index 5956c35d34ac..4bb779aeff6a 100644 --- a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c +++ b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c | |||
@@ -1745,9 +1745,7 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca) | |||
1745 | 1745 | ||
1746 | for (i = 0; i < ca->slot_count; i++) { | 1746 | for (i = 0; i < ca->slot_count; i++) { |
1747 | dvb_ca_en50221_slot_shutdown(ca, i); | 1747 | dvb_ca_en50221_slot_shutdown(ca, i); |
1748 | if (ca->slot_info[i].rx_buffer.data != NULL) { | 1748 | vfree(ca->slot_info[i].rx_buffer.data); |
1749 | vfree(ca->slot_info[i].rx_buffer.data); | ||
1750 | } | ||
1751 | } | 1749 | } |
1752 | kfree(ca->slot_info); | 1750 | kfree(ca->slot_info); |
1753 | dvb_unregister_device(ca->dvbdev); | 1751 | dvb_unregister_device(ca->dvbdev); |