linux-stable/drivers/media/rc
Gustavo A. R. Silva 6efa094369 media: sir_ir: remove unnecessary static in sir_interrupt()
Remove unnecessary static on local variable delt.
Such variable is initialized before being used,
on every execution path throughout the function.
The static has no benefit and, removing it reduces
the code 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 code size. Also,
there is a significant difference in the bss segment. This log is the
output of the size command, before and after the code change:

before:
   text    data     bss     dec     hex filename
   5009    3456     576    9041    2351 drivers/media/rc/sir_ir.o

after:
   text    data     bss     dec     hex filename
   4988    3400     512    8900    22c4 drivers/media/rc/sir_ir.o

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-20 09:41:43 -04:00
..
img-ir [media] rc-core: img-ir - leave the internals of rc_dev alone 2017-06-06 09:08:50 -03:00
keymaps [media] rc: lirc keymap no longer makes any sense 2017-03-24 08:22:36 -03:00
ati_remote.c [media] rc-core: ati_remote - leave the internals of rc_dev alone 2017-06-06 09:08:10 -03:00
ene_ir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ene_ir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
fintek-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
fintek-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
gpio-ir-recv.c [media] gpio-ir: do not allow a timeout of 0 2017-03-24 08:21:48 -03:00
igorplugusb.c [media] mce_kbd: add encoder 2017-03-24 08:24:41 -03:00
iguanair.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
imon.c [media] ir-core: fix gcc-7 warning on bool arithmetic 2017-05-19 07:04:45 -03:00
ir-hix5hd2.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ir-jvc-decoder.c [media] rc: ir-jvc-decoder: Add encode capability 2017-01-30 13:52:57 -02:00
ir-lirc-codec.c media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds 2017-07-26 05:46:42 -04:00
ir-mce_kbd-decoder.c [media] mce_kbd: add encoder 2017-03-24 08:24:41 -03:00
ir-nec-decoder.c media: rc-core: consistent use of rc_repeat() 2017-08-20 09:34:39 -04:00
ir-rc5-decoder.c [media] rc: ir-rc5-decoder: Add encode capability 2017-01-30 13:50:52 -02:00
ir-rc6-decoder.c [media] rc: ir-rc6-decoder: Add encode capability 2017-01-30 13:51:34 -02:00
ir-rx51.c [media] ir-rx51: port to rc-core 2017-01-30 14:25:04 -02:00
ir-sanyo-decoder.c media: rc-core: consistent use of rc_repeat() 2017-08-20 09:34:39 -04:00
ir-sharp-decoder.c [media] rc: ir-sharp-decoder: Add encode capability 2017-01-30 13:53:57 -02:00
ir-sony-decoder.c [media] rc: ir-sony-decoder: Add encode capability 2017-01-30 13:54:54 -02:00
ir-spi.c [media] ir-spi: Fix issues with lirc API 2017-06-07 09:40:55 -03:00
ir-xmp-decoder.c
ite-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ite-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
lirc_dev.c [media] lirc_dev: cleanup includes 2017-06-06 09:06:40 -03:00
Makefile [media] rc: promote lirc_sir out of staging 2017-04-05 14:50:57 -03:00
mceusb.c [media] mceusb: drop redundant urb reinitialisation 2017-06-07 09:39:52 -03:00
meson-ir.c [media] rc: meson-ir: switch config to NEC decoding on shutdown 2017-06-06 08:56:32 -03:00
mtk-cir.c media: rc: mtk-cir: add support for MediaTek MT7622 SoC 2017-08-20 09:38:43 -04:00
nuvoton-cir.c [media] rc: nuvoton: fix deadlock in nvt_write_wakeup_codes 2017-03-03 07:06:57 -03:00
nuvoton-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
rc-core-priv.h [media] rc-core: cleanup rc_register_device 2017-06-13 13:53:50 -03:00
rc-ir-raw.c [media] rc-core: cleanup rc_register_device 2017-06-13 13:53:50 -03:00
rc-loopback.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
rc-main.c media: rc-core: consistent use of rc_repeat() 2017-08-20 09:34:39 -04:00
redrat3.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
serial_ir.c Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
sir_ir.c media: sir_ir: remove unnecessary static in sir_interrupt() 2017-08-20 09:41:43 -04:00
st_rc.c [media] st_rc: simplify optional reset handling 2017-03-24 08:29:27 -03:00
streamzap.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
sunxi-cir.c [media] rc: sunxi-cir: simplify optional reset handling 2017-03-24 08:30:03 -03:00
ttusbir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
winbond-cir.c [media] winbond: allow timeout to be set 2017-03-24 08:21:17 -03:00