From: Julia Lawall Date: Thu, 27 Jan 2011 15:49:07 +0000 (+0100) Subject: staging: msm/lcdc.c: Convert IS_ERR result to PTR_ERR X-Git-Tag: v2.6.39-rc1~469^2~775 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3073acd61cf278e4f85521186e937ab6e7fee739;p=pandora-kernel.git staging: msm/lcdc.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: David Brown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed