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

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;