From: Julia Lawall Date: Thu, 27 Jan 2011 15:49:06 +0000 (+0000) Subject: arch/arm/mach-omap2/dma.c: Convert IS_ERR result to PTR_ERR X-Git-Tag: v2.6.38-rc3~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e6d8cad448bde3d846961bb43db15daae94562e;p=pandora-kernel.git arch/arm/mach-omap2/dma.c: Convert IS_ERR result to PTR_ERR This code elsewhere returns a negative constant to an indicate an error, while IS_ERR returns the result of a >= operation. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ if (...) { ... - return IS_ERR(x); + return PTR_ERR(x); } // Signed-off-by: Julia Lawall Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed