summaryrefslogtreecommitdiff
path: root/drivers/mmc/card/mmc_test.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-02-06 08:43:41 (GMT)
committerDan Williams <dan.j.williams@intel.com>2010-02-10 19:07:28 (GMT)
commit734c2992828c66cee3feb21ecd30a6ac44aecc51 (patch)
treec732007f463393046dc83cc3d6b5953cb076aa32 /drivers/mmc/card/mmc_test.c
parent8f98781e0f15207b6ab33bee1fae05428be0475b (diff)
downloadlinux-fsl-qoriq-734c2992828c66cee3feb21ecd30a6ac44aecc51.tar.xz
drivers/dma: Correct NULL test
cohd_fin has already been verified not to be NULL, so the argument to BUG_ON cannot be true. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/mmc/card/mmc_test.c')
0 files changed, 0 insertions, 0 deletions