Julia Lawall
4a9b7f9f27
drivers/ata/sata_rcar.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.
Move the call to platform_get_resource adjacent to the call to
devm_ioremap_resource to make the connection between them more clear.
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>
Signed-off-by: Tejun Heo <tj@kernel.org>
2013-08-14 09:31:36 -04:00
..
2013-07-02 19:54:16 -07:00
2013-06-17 11:23:05 -07:00
2013-07-03 19:49:46 -07:00
2013-07-02 19:54:16 -07:00
2012-07-25 15:12:11 -04:00
2013-07-02 19:54:16 -07:00
2013-07-13 14:52:21 -07:00
2013-07-02 19:54:16 -07:00
2013-06-25 00:51:33 +02:00
2013-07-03 19:49:46 -07:00
2013-05-14 11:13:04 -07:00
2013-06-11 00:14:34 -07:00
2013-07-02 19:54:16 -07:00
2013-05-14 11:13:04 -07:00
2013-05-14 11:44:07 -07:00
2010-10-21 20:21:03 -04:00
2013-06-24 15:45:28 -07:00
2013-07-25 10:49:13 -04:00
2013-02-20 17:10:53 -05:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-08-09 10:12:23 -04:00
2013-06-02 22:22:03 -07:00
2013-07-30 08:59:24 -04:00
2013-07-30 08:59:24 -04:00
2012-08-17 13:26:51 -04:00
2013-06-02 22:22:03 -07:00
2013-05-24 10:26:13 +09:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:38:41 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2013-05-12 15:19:46 +02:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2013-01-03 15:57:03 -08:00
2013-05-24 10:26:13 +09:00
2009-03-24 22:52:39 -04:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2013-07-30 08:59:24 -04:00
2012-07-25 15:12:11 -04:00
2013-04-03 19:53:10 -04:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2013-05-24 10:26:13 +09:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2013-07-30 08:59:24 -04:00
2013-01-03 15:57:03 -08:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2013-01-03 15:57:03 -08:00
2013-03-15 12:26:03 -07:00
2012-07-25 15:12:11 -04:00
2013-06-02 22:22:03 -07:00
2012-07-25 15:12:11 -04:00
2013-07-30 08:59:24 -04:00
2013-07-30 08:59:24 -04:00
2012-07-25 15:12:11 -04:00
2013-01-03 15:57:03 -08:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-08-09 10:12:23 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2013-01-03 15:57:03 -08:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-06-02 22:22:03 -07:00
2013-05-14 11:13:04 -07:00
2012-12-14 09:43:39 -05:00
2013-05-24 10:26:13 +09:00
2013-08-09 12:08:32 -04:00
2013-06-02 22:22:03 -07:00
2013-07-30 09:03:01 -04:00
2013-06-02 22:22:03 -07:00
2013-05-14 11:13:04 -07:00
2008-01-23 05:24:15 -05:00
2012-07-25 15:12:11 -04:00
2013-08-14 09:31:36 -04:00
2013-06-02 22:22:03 -07:00
2013-07-02 19:54:16 -07:00
2012-07-25 15:12:11 -04:00
2013-04-09 14:13:28 -04:00
2013-05-14 11:13:04 -07:00
2012-07-25 15:12:11 -04:00
2013-05-14 11:13:04 -07:00
2013-01-03 15:57:03 -08:00
2007-07-02 10:17:42 -04:00