From: Julia Lawall Date: Fri, 13 Nov 2009 00:14:31 +0000 (-0800) Subject: arch/arm/plat-omap: Drop an unnecessary NULL test X-Git-Tag: v2.6.32-omap1~11^2^2~1^2^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0925c480f3a5e0bc896447f162436a01913c56c2;p=pandora-kernel.git arch/arm/plat-omap: Drop an unnecessary NULL test map_iovm_area is only called from a context where its second argument is known not to be NULL, so drop the unnecessary test. If new could be NULL, the initialization of da should be moved below the test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // Signed-off-by: Julia Lawall Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed