linux_dsm_epyc7002/drivers/input/serio
Julia Lawall ef0aca7f2f Input: keyboard, serio - 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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2013-08-15 00:30:17 -07:00
..
altera_ps2.c Input: altera_ps2 - remove redundant platform_set_drvdata() 2013-05-05 20:15:03 -07:00
ambakmi.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
ams_delta_serio.c
apbps2.c Input: apbps2 - convert to devm_ioremap_resource() 2013-04-15 13:40:33 -07:00
arc_ps2.c Input: keyboard, serio - simplify use of devm_ioremap_resource 2013-08-15 00:30:17 -07:00
at32psif.c Input: at32psif - remove redundant platform_set_drvdata() 2013-05-05 20:15:07 -07:00
ct82c710.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
gscps2.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
hil_mlc.c Input: HIL - do not call tasklet_disable right before tasklet_kill 2012-11-25 00:10:13 -08:00
hp_sdc_mlc.c
hp_sdc.c
i8042-io.h
i8042-ip22io.h
i8042-jazzio.h
i8042-ppcio.h
i8042-snirm.h
i8042-sparcio.h Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
i8042-unicore32io.h
i8042-x86ia64io.h x86, 8042: Enable A20 using KBC to fix S3 resume on some MSI laptops 2012-12-11 14:55:16 -08:00
i8042.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
i8042.h
Kconfig Input: add OLPC AP-SP driver 2013-06-30 20:09:18 -07:00
libps2.c
maceps2.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
Makefile Input: add OLPC AP-SP driver 2013-06-30 20:09:18 -07:00
olpc_apsp.c Input: keyboard, serio - simplify use of devm_ioremap_resource 2013-08-15 00:30:17 -07:00
parkbd.c
pcips2.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
ps2mult.c
q40kbd.c Input: q40kbd - remove redundant platform_set_drvdata() 2013-05-05 20:15:11 -07:00
rpckbd.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
sa1111ps2.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
serio_raw.c
serio.c Input: serio - remove CONFIG_HOTPLUG ifdefs 2012-11-24 00:03:39 -08:00
serport.c
xilinx_ps2.c Input: xilinx_ps2 - remove redundant platform_set_drvdata() 2013-05-28 00:57:48 -07:00