mirror of
https://github.com/torvalds/linux.git
synced 2026-07-19 03:59:06 +02:00
Test the just-allocated value for NULL rather than some other value. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ identifier f; @@ f(...) { <+... return NULL; ...+> } @@ expression *x; expression y; identifier r.f; statement S; @@ x = f(...); ( if ((x) == NULL) S | if ( - y + x == NULL) S ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| usbvision-cards.c | ||
| usbvision-cards.h | ||
| usbvision-core.c | ||
| usbvision-i2c.c | ||
| usbvision-video.c | ||
| usbvision.h | ||