mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
e52786ac3c
Put NULL test on the result of the previous call instead on one of its arguments. A simplified version of the semantic match that finds this problem is as follows (http://coccinelle.lip6.fr/): // <smpl> r@ expression *e1; expression *e2; identifier f; statement S1,S2; @@ e1 = f(...,e2,...); ( if (e1 == NULL || ...) S1 else S2 | *if (e2 == NULL || ...) S1 else S2 ) // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> |
||
---|---|---|
.. | ||
clk-icst.c | ||
clk-icst.h | ||
clk-impd1.c | ||
clk-realview.c | ||
clk-sp810.c | ||
clk-versatile.c | ||
clk-vexpress-osc.c | ||
Kconfig | ||
Makefile |