From: Julia Lawall Date: Sat, 13 Dec 2008 15:37:59 +0000 (+0100) Subject: [ARM] arch/arm/common/sa1111.c: Correct error handling code X-Git-Tag: v2.6.28-rc9~17^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=442a902262e1dfc3f1298ceea5f3120fe2043904;p=pandora-kernel.git [ARM] arch/arm/common/sa1111.c: Correct error handling code If it is reasonable to apply PTR_ERR to the result of calling clk_get, then that result should first be tested with IS_ERR, not with !. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ expression E,E1; @@ if ( - E == NULL + IS_ERR(E) ) { <+... when != E = E1 PTR_ERR(E) ...+> } // Signed-off-by: Julia Lawall Signed-off-by: Russell King --- Reading git-diff-tree failed