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:
parent
52a85e1709
commit
de99d76aa1
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue