linux_old1/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
..
Kconfig clk: versatile: Split config options for sp810 and vexpress_osc 2014-05-15 17:02:20 +01:00
Makefile ARM: vexpress: Remove non-DT code 2014-11-28 16:08:16 +01:00
clk-icst.c clk: versatile: free icst on error return 2014-05-30 17:07:46 -07:00
clk-icst.h clk: versatile: pass a parent to the ICST clock 2014-02-13 11:20:48 +01:00
clk-impd1.c clk: impd1: add pclk clocks 2014-05-21 16:16:02 -07:00
clk-realview.c clk: versatile: pass a parent to the ICST clock 2014-02-13 11:20:48 +01:00
clk-sp810.c clk: versatile: Staticize clk_sp810_timerclken_of_get 2013-12-19 17:47:32 -08:00
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