Julia Lawall
9aebc96276
watchdog: nuc900_wdt.c: simplify use of devm_ioremap_resource
...
Remove unneeded error handling on the result of a call to
platform_get_resource when the value is passed to devm_ioremap_resource.
A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@@
expression pdev,res,n,e,e1;
expression ret != 0;
identifier l;
@@
- res = platform_get_resource(pdev, IORESOURCE_MEM, n);
... when != res
- if (res == NULL) { ... \(goto l;\|return ret;\) }
... when != res
+ res = platform_get_resource(pdev, IORESOURCE_MEM, n);
e = devm_ioremap_resource(e1, res);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2013-09-10 21:15:02 +02:00
..
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2013-01-25 12:21:48 -08:00
2013-07-11 20:52:42 +02:00
2013-03-01 12:55:27 +01:00
2013-03-01 12:53:45 +01:00
2011-11-28 22:50:39 +08:00
2013-05-18 11:58:04 +02:00
2013-03-01 12:47:31 +01:00
2013-07-11 20:53:44 +02:00
2013-07-11 22:17:30 +02:00
2012-11-28 12:00:24 -08:00
2013-06-25 18:14:45 -05:00
2013-05-31 11:25:52 +02:00
2012-12-19 22:24:41 +01:00
2013-07-11 21:07:24 +02:00
2013-07-11 21:08:01 +02:00
2013-07-11 21:08:27 +02:00
2013-05-18 11:58:04 +02:00
2013-07-11 21:00:24 +02:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-07-23 12:46:38 +02:00
2013-03-01 12:18:33 +01:00
2012-11-28 12:00:24 -08:00
2013-07-11 22:20:06 +02:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2013-07-11 21:01:06 +02:00
2012-03-27 20:06:02 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 20:06:02 +02:00
2012-05-23 16:24:43 +02:00
2012-03-27 20:06:02 +02:00
2012-05-09 17:20:09 +02:00
2012-05-09 17:20:09 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:12:31 +02:00
2013-09-10 21:14:44 +02:00
2013-06-30 23:30:06 +02:00
2012-11-28 12:00:24 -08:00
2013-01-25 12:21:48 -08:00
2012-09-27 23:34:03 +10:00
2012-03-28 15:58:21 -07:00
2013-09-10 21:14:44 +02:00
2013-01-25 12:21:48 -08:00
2013-07-11 22:19:05 +02:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2013-07-11 21:04:05 +02:00
2013-07-11 20:54:21 +02:00
2013-09-10 21:15:02 +02:00
2012-11-28 12:00:24 -08:00
2011-01-12 13:51:23 +00:00
2012-03-27 20:06:02 +02:00
2010-08-05 13:26:22 +01:00
2013-07-11 21:47:22 +02:00
2013-03-01 12:49:02 +01:00
2011-03-15 16:02:27 +00:00
2013-07-11 22:18:30 +02:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:01:53 +02:00
2013-07-11 20:55:28 +02:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:31:14 +01:00
2013-07-11 20:57:25 +02:00
2013-09-10 21:14:36 +02:00
2012-07-09 17:37:35 +01:00
2013-06-21 18:07:03 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:03:04 +02:00
2012-03-28 15:58:21 -07:00
2013-07-11 22:19:30 +02:00
2013-07-11 21:03:30 +02:00
2013-03-22 23:21:47 +01:00
2013-03-22 23:21:55 +01:00
2013-03-01 12:44:34 +01:00
2013-09-10 21:14:44 +02:00
2013-07-11 20:58:02 +02:00
2013-07-11 21:10:13 +02:00
2013-01-25 12:21:48 -08:00
2013-02-14 00:22:53 +01:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2013-03-01 12:48:36 +01:00
2012-05-30 07:54:25 +02:00
2013-07-11 21:14:39 +02:00
2009-03-25 09:07:04 +00:00
2013-07-11 21:26:31 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2013-07-11 21:05:38 +02:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00