diff options
author | Pavel Vasilyev <pavel@pavlinux.ru> | 2010-01-11 18:08:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-04 00:42:43 (GMT) |
commit | 32dbb67138fdb8cefa348d29850eb9a9ce964e09 (patch) | |
tree | e2322ebf643916808900ac8bb7fce85ed36df169 /drivers/staging/dream | |
parent | 362f46e3ab6ee4fc771da55067921c39dd13877d (diff) | |
download | linux-fsl-qoriq-32dbb67138fdb8cefa348d29850eb9a9ce964e09.tar.xz |
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: Pavel Vasilyev <pavel@pavlinux.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/dream')
-rw-r--r-- | drivers/staging/dream/camera/msm_vfe7x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/dream/camera/msm_vfe7x.c b/drivers/staging/dream/camera/msm_vfe7x.c index 33ab3ac..62fd24d 100644 --- a/drivers/staging/dream/camera/msm_vfe7x.c +++ b/drivers/staging/dream/camera/msm_vfe7x.c @@ -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; |