summaryrefslogtreecommitdiff
path: root/drivers/media/rc/nuvoton-cir.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 20:54:09 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 00:10:07 +0400
commit230dc94a2a6e5786b8529e3218979719758f1fa0 (patch)
treec7ecc101b417489bce65a338830edf315088eb9a /drivers/media/rc/nuvoton-cir.h
parent8e1803f4cd4bab0a66a24945a00e2c3a89457a32 (diff)
downloadlinux-230dc94a2a6e5786b8529e3218979719758f1fa0.tar.xz
[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>
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.h')
-rw-r--r--drivers/media/rc/nuvoton-cir.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/rc/nuvoton-cir.h b/drivers/media/rc/nuvoton-cir.h
index 0d5e0872a2ea..7c3674ff5ea2 100644
--- a/drivers/media/rc/nuvoton-cir.h
+++ b/drivers/media/rc/nuvoton-cir.h
@@ -103,7 +103,6 @@ struct nvt_dev {
/* rx settings */
bool learning_enabled;
- bool carrier_detect_enabled;
/* track cir wake state */
u8 wake_state;