Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de99d76a authored by Figo.zhang's avatar Figo.zhang Committed by Mauro Carvalho Chehab
Browse files

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: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 52a85e17
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)
	cam->buffer = NULL;
	vfree(cam->framebuf);
	cam->framebuf = NULL;
	kfree(cam);
	cam = NULL;
}