summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-03-13 23:32:35 +0000
committerJohannes Stezenbach <devnull@localhost>2005-03-13 23:32:35 +0000
commitadf52b0fc755f536ccb41aa6dae6056e426e718d (patch)
tree33ab3638746cf1045ddc6c07ac0d6470d2a38dfb /linux/drivers
parentf18e8baa8f48b863a59ff81c8795c317d49f4fb8 (diff)
downloadmediapointer-dvb-s2-adf52b0fc755f536ccb41aa6dae6056e426e718d.tar.gz
mediapointer-dvb-s2-adf52b0fc755f536ccb41aa6dae6056e426e718d.tar.bz2
dvb_ca_en50221.c vfree() checking cleanups.
Signed-off by: James Lamanna <jlamanna@gmail.com> Signed-off-by: Domen Puncer <domen@coderock.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c3
1 files changed, 1 insertions, 2 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 8af9f3050..4153101e6 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -804,8 +804,7 @@ static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
down_write(&ca->slot_info[slot].sem);
ca->pub->slot_shutdown(ca->pub, slot);
ca->slot_info[slot].slot_state = DVB_CA_SLOTSTATE_NONE;
- if (ca->slot_info[slot].rx_buffer.data)
- vfree(ca->slot_info[slot].rx_buffer.data);
+ vfree(ca->slot_info[slot].rx_buffer.data);
ca->slot_info[slot].rx_buffer.data = NULL;
up_write(&ca->slot_info[slot].sem);