Staging: dream: HTC Dream camera, not need sizeof
authorPavel Vasilyev <pavel@pavlinux.ru>
Mon, 11 Jan 2010 18:08:02 +0000 (21:08 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:43 +0000 (16:42 -0800)
http://bugzilla.kernel.org/show_bug.cgi?id=14825

sizeof(extlen), always will be sizeof( unit32_t) or 4
It seems that something is wrong?!?!

Signed-off-by: Pavel Vasilyev <pavel@pavlinux.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dream/camera/msm_vfe7x.c

index 33ab3ac6ac57a61668f4d76e292ee9d0dfba1e98..62fd24d632d5cef6ef36d5ddc757862bf7be07aa 100644 (file)
@@ -255,8 +255,7 @@ static int vfe_7x_init(struct msm_vfe_callback *presp,
 
        extlen = sizeof(struct vfe_frame_extra);
 
-       extdata =
-               kmalloc(sizeof(extlen), GFP_ATOMIC);
+       extdata = kmalloc(extlen, GFP_ATOMIC);
        if (!extdata) {
                rc = -ENOMEM;
                goto init_fail;