]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] nuvoton-cir: carrier detect support is broken - remove it
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 16:54:09 +0000 (13:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 20:10:07 +0000 (18:10 -0200)
commit230dc94a2a6e5786b8529e3218979719758f1fa0
treec7ecc101b417489bce65a338830edf315088eb9a
parent8e1803f4cd4bab0a66a24945a00e2c3a89457a32
[media] nuvoton-cir: carrier detect support is broken - remove it

The carrier detect return value is never used on nuvoton driver:
drivers/media/rc/nuvoton-cir.c: In function 'nvt_process_rx_ir_data':
drivers/media/rc/nuvoton-cir.c:623:6: warning: variable 'carrier' set but not used [-Wunused-but-set-variable]
Also, this would be called only if a boolean variable is enabled,
but there's no condition that enables it inside the driver. So,
comment the carrier detection code, as it might be useful later,
and remove the unused glue code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h