From adf52b0fc755f536ccb41aa6dae6056e426e718d Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Sun, 13 Mar 2005 23:32:35 +0000 Subject: dvb_ca_en50221.c vfree() checking cleanups. Signed-off by: James Lamanna Signed-off-by: Domen Puncer --- linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux/drivers') 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); -- cgit v1.2.3