Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Heiner Kallweit and committed by
Mauro Carvalho Chehab
068fb7dd d0b528d5

+2 -3
+2 -3
drivers/media/rc/nuvoton-cir.c
··· 716 716 717 717 static void nvt_cir_log_irqs(u8 status, u8 iren) 718 718 { 719 - nvt_pr(KERN_INFO, "IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s", 719 + nvt_dbg("IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s", 720 720 status, iren, 721 721 status & CIR_IRSTS_RDR ? " RDR" : "", 722 722 status & CIR_IRSTS_RTR ? " RTR" : "", ··· 790 790 return IRQ_NONE; 791 791 } 792 792 793 - if (debug) 794 - nvt_cir_log_irqs(status, iren); 793 + nvt_cir_log_irqs(status, iren); 795 794 796 795 if (status & CIR_IRSTS_RTR) { 797 796 /* FIXME: add code for study/learn mode */