summaryrefslogtreecommitdiff
path: root/include/linux/root_dev.h
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-01-27 16:49:07 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-31 13:44:05 -0800
commit3073acd61cf278e4f85521186e937ab6e7fee739 (patch)
tree1d0e70dbb2645be00da731ddbe7526d83643b9c3 /include/linux/root_dev.h
parentda9fcb7260af0cd85351740b526afdc88d4f348a (diff)
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/) // <smpl> @@ expression x; @@ if (...) { ... - return IS_ERR(x); + return PTR_ERR(x); } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: David Brown <davidb@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions