From: Julia Lawall Date: Sun, 13 Dec 2009 11:43:15 +0000 (+0100) Subject: ASoC: Correct code taking the size of a pointer X-Git-Tag: v2.6.33-rc1~77^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc2580061e42c323d7777029f01318f395edac0d;p=pandora-kernel.git ASoC: Correct code taking the size of a pointer sizeof(codec->reg_cache) is just the size of the pointer. Elsewhere in the file, codec->reg_cache is used with sizeof(wm8900_reg_defaults), so the code is changed to do the same here. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; expression f; type T; @@ *f(...,(T)x,...) // Signed-off-by: Julia Lawall Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed