Julia Lawall 3ee7451a02 mtd: ts5500_flash: avoid calling map_destroy on NULL
map_destroy dereferences its argument.  The call is furthermore only
reachable when this argument is NULL.  Thus the call is dropped.

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

// <smpl>
@@
expression *x;
@@

*if (x == NULL)
{ ...
* map_destroy(x);
  ...
  return ...;
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2011-03-11 14:22:44 +00:00
..
2011-03-11 14:22:40 +00:00
2008-06-04 17:50:17 +01:00
2008-06-04 17:50:17 +01:00
2008-12-10 13:01:32 +00:00
2010-05-13 21:23:06 +01:00
2008-06-04 17:50:17 +01:00
2008-06-04 17:50:17 +01:00
2008-12-10 13:01:20 +00:00
2008-06-04 17:50:17 +01:00
2011-03-11 14:22:40 +00:00
2008-06-04 17:50:17 +01:00
2008-06-04 17:50:17 +01:00