Tag: 0e6d8cad448bde3d846961bb43db15daae94562e

arch/arm/mach-omap2/dma.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