aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2860/rt_main_dev.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-07-28 17:52:56 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:06 -0700
commitd0e0507ad6ccbeaad1f6bfe5923bdc5110df8636 (patch)
tree86faef7d4382cfd639c7fa886bab435f0eea22f1 /drivers/staging/rt2860/rt_main_dev.c
parentStaging: ARRAY_SIZE changes (diff)
downloadlinux-dev-d0e0507ad6ccbeaad1f6bfe5923bdc5110df8636.tar.xz
linux-dev-d0e0507ad6ccbeaad1f6bfe5923bdc5110df8636.zip
Staging: dst: correct error-handling code
dst_state_alloc returns an ERR_PTR value in an error case instead of NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @match exists@ expression x, E; statement S1, S2; @@ x = dst_state_alloc(...) ... when != x = E ( * if (x == NULL || ...) S1 else S2 | * if (x == NULL && ...) S1 else S2 ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/rt_main_dev.c')
0 files changed, 0 insertions, 0 deletions