staging: comedi: pcl816: remove DEBUG macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Nov 2013 17:42:10 +0000 (10:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:44:18 +0000 (11:44 -0800)
This macro is only used to output some function tracing debug messages.
These messages are just added noise so remove the DEBUG macro as well
as the noise.

Also, remove pcl816_cmdtest_out() which was only called as part of the
DEBUG() in pcl816_ai_cmdtest().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl816.c

index ab9d2bd26a207b11ff463f0952cf66f8d95cd456..36a96574b07d7e81707e236c720d5dce624d4dd4 100644 (file)
@@ -44,8 +44,6 @@ Configuration Options:
 #include "comedi_fc.h"
 #include "8253.h"
 
-#define DEBUG(x) x
-
 /* boards constants */
 /* IO space len */
 #define PCLx1x_RANGE 16
@@ -403,22 +401,6 @@ static irqreturn_t interrupt_pcl816(int irq, void *d)
        return IRQ_NONE;
 }
 
-/*
-==============================================================================
-   COMMAND MODE
-*/
-static void pcl816_cmdtest_out(int e, struct comedi_cmd *cmd)
-{
-       printk(KERN_INFO "pcl816 e=%d startsrc=%x scansrc=%x convsrc=%x\n", e,
-              cmd->start_src, cmd->scan_begin_src, cmd->convert_src);
-       printk(KERN_INFO "pcl816 e=%d startarg=%d scanarg=%d convarg=%d\n", e,
-              cmd->start_arg, cmd->scan_begin_arg, cmd->convert_arg);
-       printk(KERN_INFO "pcl816 e=%d stopsrc=%x scanend=%x\n", e,
-              cmd->stop_src, cmd->scan_end_src);
-       printk(KERN_INFO "pcl816 e=%d stoparg=%d scanendarg=%d chanlistlen=%d\n",
-              e, cmd->stop_arg, cmd->scan_end_arg, cmd->chanlist_len);
-}
-
 /*
 ==============================================================================
 */
@@ -429,10 +411,6 @@ static int pcl816_ai_cmdtest(struct comedi_device *dev,
        int err = 0;
        int tmp, divisor1 = 0, divisor2 = 0;
 
-       DEBUG(printk(KERN_INFO "pcl816 pcl812_ai_cmdtest\n");
-             pcl816_cmdtest_out(-1, cmd);
-            );
-
        /* Step 1 : check if triggers are trivially valid */
 
        err |= cfc_check_trigger_src(&cmd->start_src, TRIG_NOW);
@@ -685,8 +663,6 @@ static int pcl816_ai_cancel(struct comedi_device *dev,
 {
        struct pcl816_private *devpriv = dev->private;
 
-/* DEBUG(printk("pcl816_ai_cancel()\n");) */
-
        if (devpriv->irq_blocked > 0) {
                switch (devpriv->int816_mode) {
                case INT_TYPE_AI1_DMA:
@@ -719,9 +695,7 @@ static int pcl816_ai_cancel(struct comedi_device *dev,
                        break;
                }
        }
-
-       DEBUG(printk("comedi: pcl816_ai_cancel() successful\n");)
-           return 0;
+       return 0;
 }
 
 /*
@@ -823,11 +797,6 @@ check_channel_list(struct comedi_device *dev,
                /*  first channel is every time ok */
                chansegment[0] = chanlist[0];
                for (i = 1, seglen = 1; i < chanlen; i++, seglen++) {
-                       /*  build part of chanlist */
-                       DEBUG(printk(KERN_INFO "%d. %d %d\n", i,
-                                    CR_CHAN(chanlist[i]),
-                                    CR_RANGE(chanlist[i]));)
-
                        /*  we detect loop, this must by finish */
                            if (chanlist[0] == chanlist[i])
                                break;
@@ -849,11 +818,6 @@ check_channel_list(struct comedi_device *dev,
 
                /*  check whole chanlist */
                for (i = 0, segpos = 0; i < chanlen; i++) {
-                       DEBUG(printk("%d %d=%d %d\n",
-                                    CR_CHAN(chansegment[i % seglen]),
-                                    CR_RANGE(chansegment[i % seglen]),
-                                    CR_CHAN(chanlist[i]),
-                                    CR_RANGE(chanlist[i]));)
                            if (chanlist[i] != chansegment[i % seglen]) {
                                printk(KERN_WARNING
                                       "comedi%d: pcl816: bad channel or range"