Commit 32dbb671 authored by Pavel Vasilyev's avatar Pavel Vasilyev Committed by Greg Kroah-Hartman

Staging: dream: HTC Dream camera, not need sizeof

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: default avatarPavel Vasilyev <pavel@pavlinux.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 362f46e3
...@@ -255,8 +255,7 @@ static int vfe_7x_init(struct msm_vfe_callback *presp, ...@@ -255,8 +255,7 @@ static int vfe_7x_init(struct msm_vfe_callback *presp,
extlen = sizeof(struct vfe_frame_extra); extlen = sizeof(struct vfe_frame_extra);
extdata = extdata = kmalloc(extlen, GFP_ATOMIC);
kmalloc(sizeof(extlen), GFP_ATOMIC);
if (!extdata) { if (!extdata) {
rc = -ENOMEM; rc = -ENOMEM;
goto init_fail; goto init_fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment