Commit 068fb7dd authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Mauro Carvalho Chehab

[media] media: rc: nuvoton-cir: simplify debug code

Instead of explicitely checking debug use nvt_dbg like in other parts
of the driver thus simplifying the code.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent d0b528d5
...@@ -716,7 +716,7 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt) ...@@ -716,7 +716,7 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt)
static void nvt_cir_log_irqs(u8 status, u8 iren) static void nvt_cir_log_irqs(u8 status, u8 iren)
{ {
nvt_pr(KERN_INFO, "IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s", nvt_dbg("IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s",
status, iren, status, iren,
status & CIR_IRSTS_RDR ? " RDR" : "", status & CIR_IRSTS_RDR ? " RDR" : "",
status & CIR_IRSTS_RTR ? " RTR" : "", status & CIR_IRSTS_RTR ? " RTR" : "",
...@@ -790,7 +790,6 @@ static irqreturn_t nvt_cir_isr(int irq, void *data) ...@@ -790,7 +790,6 @@ static irqreturn_t nvt_cir_isr(int irq, void *data)
return IRQ_NONE; return IRQ_NONE;
} }
if (debug)
nvt_cir_log_irqs(status, iren); nvt_cir_log_irqs(status, iren);
if (status & CIR_IRSTS_RTR) { if (status & CIR_IRSTS_RTR) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment