]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3086): vfree(NULL) is legal.
authorMichael Krufky <mkrufky@m1k.net>
Mon, 9 Jan 2006 17:25:12 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:12 +0000 (15:25 -0200)
- vfree(NULL) is legal.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/dvb/dvb-core/dvb_ca_en50221.c

index 5956c35d34accd234cf1cf5ecf4bc0fdd0a2f12f..4bb779aeff6af804f3682fca089b5e075add7f18 100644 (file)
@@ -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);