linux/drivers/soc
Gustavo A. R. Silva db86ab0616 soc: versatile: remove unnecessary static in realview_soc_probe()
Remove unnecessary static on local variables syscon_regmap.
Such variables are initialized before being used, on every
execution path throughout the functions. The static has no
benefit and, removing it reduces the object file size.

This issue was detected using Coccinelle and the following
semantic patch:

@bad exists@
position p;
identifier x;
type T;
@@

static T x@p;
...
x = <+...x...+>

@@
identifier x;
expression e;
type T;
position p != bad.p;
@@

-static
 T x@p;
 ... when != x
     when strict
?x = e;

In the following log you can see the difference in the object file size.
This log is the output of the size command, before and after the code
change:

before:
   text    data     bss     dec     hex filename
   3339    2104     128    5571    15c3 drivers/soc/versatile/soc-realview.o

after:
   text    data     bss     dec     hex filename
   3321    2048      64    5433    1539 drivers/soc/versatile/soc-realview.o

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2017-08-16 22:28:27 +02:00
..
actions soc: actions: owl-sps: Factor out owl_sps_set_pg() for power-gating 2017-06-23 17:43:27 +02:00
atmel ARM: at91: add armv7m SoC detection 2017-06-02 10:11:49 +02:00
bcm This pull request contains Broadcom ARM/ARM64 SoCs specific driver changes for 2017-06-18 20:30:52 -07:00
dove soc: dove: constify reset_control_ops structures 2017-01-27 17:52:57 +01:00
fsl powerpc updates for 4.12 part 2 2017-05-12 10:04:09 -07:00
imx The i.MX drivers update for 4.13: 2017-06-18 23:05:10 -07:00
mediatek soc: mediatek: PMIC wrap: Fix possible NULL derefrence. 2017-05-15 10:47:25 +02:00
qcom soc: qcom: smsm: Improve error handling, quiesce probe deferral 2017-06-05 21:50:44 -05:00
renesas Renesas ARM Based SoC R-Car SYSC Updates for v4.13 2017-06-18 22:51:43 -07:00
rockchip soc: rockchip: add driver handling grf setup 2017-01-06 10:28:19 +01:00
samsung soc: samsung: Do not build ARMv7 PMU drivers on ARMv8 2017-03-21 19:03:39 +02:00
sunxi drivers: soc: sunxi: Fix mask generation for SRAM mapping 2016-01-27 20:29:20 +01:00
tegra soc/tegra: flowctrl: Fix error handling 2017-06-13 16:47:44 +02:00
ti net: ethernet: ti: netcp_core: return error while dma channel open issue 2017-05-11 12:39:34 -04:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: remove unnecessary static in realview_soc_probe() 2017-08-16 22:28:27 +02:00
zte soc: zte: Restrict SOC_ZTE to ARCH_ZX or COMPILE_TEST 2017-07-27 13:12:34 +02:00
Kconfig Actions Semi SoC drivers for 4.13 2017-06-29 17:34:57 +02:00
Makefile Actions Semi SoC drivers for 4.13 2017-06-29 17:34:57 +02:00