summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-12-01 06:08:43 +0000
committerMichael Krufky <devnull@localhost>2005-12-01 06:08:43 +0000
commit40fc7031c5e6c2b30a3a8a9b46a4f440a9e59f28 (patch)
treeb48a90a384cc26355f2f36ddc2e302dd05952ad9 /linux
parent7a2c5cc23c1d61f178237b8da9434cd3bf6bee55 (diff)
downloadmediapointer-dvb-s2-40fc7031c5e6c2b30a3a8a9b46a4f440a9e59f28.tar.gz
mediapointer-dvb-s2-40fc7031c5e6c2b30a3a8a9b46a4f440a9e59f28.tar.bz2
vfree(NULL) is legal.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
index 5956c35d3..4bb779aef 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -1745,9 +1745,7 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
for (i = 0; i < ca->slot_count; i++) {
dvb_ca_en50221_slot_shutdown(ca, i);
- if (ca->slot_info[i].rx_buffer.data != NULL) {
- vfree(ca->slot_info[i].rx_buffer.data);
- }
+ vfree(ca->slot_info[i].rx_buffer.data);
}
kfree(ca->slot_info);
dvb_unregister_device(ca->dvbdev);