[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>
Dieser Commit ist enthalten in:
Mauro Carvalho Chehab
2012-10-27 13:54:09 -03:00
Ursprung 8e1803f4cd
Commit 230dc94a2a
2 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen

Datei anzeigen

@@ -103,7 +103,6 @@ struct nvt_dev {
/* rx settings */
bool learning_enabled;
bool carrier_detect_enabled;
/* track cir wake state */
u8 wake_state;