Tag: 3073acd61cf278e4f85521186e937ab6e7fee739

staging: msm/lcdc.c: Convert IS_ERR result to PTR_ERR

Author: Julia Lawall <julia@diku.dk> 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 …

Continue reading