diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-06 05:16:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:07:53 -0400 |
commit | de99d76aa19994f0d1140b1397fc439525e147c0 (patch) | |
tree | d3d8620e40f39b36b3688fb0d3c68566750311a2 | |
parent | 52a85e17091d2fe9ade6a5d94063e70c5d2a9d5b (diff) |
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>
-rw-r--r-- | drivers/media/video/zr364xx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c index ac169c9eb18d..fc976f42f432 100644 --- a/drivers/media/video/zr364xx.c +++ b/drivers/media/video/zr364xx.c | |||
@@ -882,9 +882,11 @@ static void zr364xx_disconnect(struct usb_interface *intf) | |||
882 | video_unregister_device(cam->vdev); | 882 | video_unregister_device(cam->vdev); |
883 | cam->vdev = NULL; | 883 | cam->vdev = NULL; |
884 | kfree(cam->buffer); | 884 | kfree(cam->buffer); |
885 | if (cam->framebuf) | 885 | cam->buffer = NULL; |
886 | vfree(cam->framebuf); | 886 | vfree(cam->framebuf); |
887 | cam->framebuf = NULL; | ||
887 | kfree(cam); | 888 | kfree(cam); |
889 | cam = NULL; | ||
888 | } | 890 | } |
889 | 891 | ||
890 | 892 | ||