staging: dwc2: remove #ifdef DEBUG from a couple of places
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 23 Nov 2013 00:43:52 +0000 (16:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:59:58 +0000 (11:59 -0800)
Remove #ifdef DEBUG from a couple of places where it is not needed

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core_intr.c

index c78bb5d74045251405bcfb2ae2e6b03913966d49..8205799e6db32082cfd36aa9343464fa16283cf0 100644 (file)
@@ -55,7 +55,6 @@
 
 static const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg)
 {
-#ifdef DEBUG
        switch (hsotg->op_state) {
        case OTG_STATE_A_HOST:
                return "a_host";
@@ -70,9 +69,6 @@ static const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg)
        default:
                return "unknown";
        }
-#else
-       return "";
-#endif
 }
 
 /**
@@ -419,12 +415,10 @@ static u32 dwc2_read_common_intr(struct dwc2_hsotg *hsotg)
        gintmsk = readl(hsotg->regs + GINTMSK);
        gahbcfg = readl(hsotg->regs + GAHBCFG);
 
-#ifdef DEBUG
        /* If any common interrupts set */
        if (gintsts & gintmsk_common)
                dev_dbg(hsotg->dev, "gintsts=%08x  gintmsk=%08x\n",
                        gintsts, gintmsk);
-#endif
 
        if (gahbcfg & GAHBCFG_GLBL_INTR_EN)
                return gintsts & gintmsk & gintmsk_common;