aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-11-21 21:18:44 +0000
committerLiam Girdwood <[email protected]>2009-12-17 10:27:27 +0000
commitd662fc82dc745ee24d518b0fde5a6a19758092ec (patch)
treec0cb7b58cafe6c162c881c75c966b0aa814c2e4d /net/lapb/lapb_in.c
parentregulator: consumer.h - fix build when consumer.h is #included first. (diff)
downloadkernel-d662fc82dc745ee24d518b0fde5a6a19758092ec.tar.gz
kernel-d662fc82dc745ee24d518b0fde5a6a19758092ec.zip
drivers/regulator: use PTR_ERR to get error code
IS_ERR returns only 1 or 0. The callsite of setup_regulators expects a negative integer in an error case. Thus, PTR_ERR has to be used to extract it. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression E,E1; @@ *E = IS_ERR(...) ... when != E = E1 *return E; // </smpl> Signed-off-by: Julia Lawall <[email protected]> Acked-by: <[email protected]> Signed-off-by: Liam Girdwood <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions