dect
/
linux-2.6
Archived
13
0
Fork 0

V4L/DVB (11995): zr364xx.c: vfree does its own NULL check

vfree() does it's own NULL checking, no need for explicit check before
calling it.

Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Figo.zhang 2009-06-06 06:16:21 -03:00 committed by Mauro Carvalho Chehab
parent 52a85e1709
commit de99d76aa1
1 changed files with 4 additions and 2 deletions

View File

@ -882,9 +882,11 @@ static void zr364xx_disconnect(struct usb_interface *intf)
video_unregister_device(cam->vdev);
cam->vdev = NULL;
kfree(cam->buffer);
if (cam->framebuf)
vfree(cam->framebuf);
cam->buffer = NULL;
vfree(cam->framebuf);
cam->framebuf = NULL;
kfree(cam);
cam = NULL;
}