Staging: comedi: fixed warnings reported by checkpatch tool on comedi_test.c file
authorRaghavendra Ganiga <ravi23ganiga@gmail.com>
Mon, 19 May 2014 16:19:03 +0000 (21:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:30:25 +0000 (21:30 +0900)
This is a patch to remove warnings reported by checkpatch tool on
comedi_test.c file

Signed-off-by: Raghavendra Chandra Ganiga <ravi23ganiga@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/comedi_test.c

index ad5014a4074e540f5e3a64b72144ad3f7871cfe9..9896a16fe84b92fe9b1fca5513714d6f93ddaf4d 100644 (file)
@@ -188,6 +188,7 @@ static void waveform_ai_interrupt(unsigned long arg)
 
        if (cmd->stop_src == TRIG_COUNT) {
                unsigned int remaining = cmd->stop_arg - devpriv->ai_count;
+
                if (num_scans >= remaining) {
                        /* about to finish */
                        num_scans = remaining;
@@ -198,6 +199,7 @@ static void waveform_ai_interrupt(unsigned long arg)
        for (i = 0; i < num_scans; i++) {
                for (j = 0; j < cmd->chanlist_len; j++) {
                        unsigned short sample;
+
                        sample = fake_waveform(dev, CR_CHAN(cmd->chanlist[j]),
                                               CR_RANGE(cmd->chanlist[j]),
                                               devpriv->usec_current +