linux/drivers/clk/versatile
Julia Lawall e52786ac3c clk: versatile: test returned value
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>
2015-04-09 08:19:31 -07:00
..
clk-icst.c
clk-icst.h
clk-impd1.c
clk-realview.c
clk-sp810.c
clk-versatile.c clk: versatile: test returned value 2015-04-09 08:19:31 -07:00
clk-vexpress-osc.c clk: constify of_device_id array 2015-04-01 10:59:27 -07:00
Kconfig
Makefile