Files
linux/drivers
Julia Lawall b5170978b4 mtd: spear_smi: failure test for null rather than negative integer
dev_get_platdata returns a pointer, so the failure value would be NULL
rather than a negative integer.

The semantic match that finds this problem is: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,e;
statement S1,S2;
@@

*x = dev_get_platdata(...)
... when != x = e
*if (x < 0) S1 else S2
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-09-29 14:53:21 +01:00
..
2012-08-02 13:51:46 -04:00
2012-08-04 12:15:39 +04:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-08-06 18:10:04 +02:00
2012-08-13 14:34:02 +08:00
2012-08-12 13:42:18 -07:00
2012-08-10 12:27:47 +02:00
2012-07-31 08:16:24 -06:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00