]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: usbduxfast: fix a > 80 char line issue
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:39:15 +0000 (13:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:28 +0000 (16:24 -0700)
Fix a line over 80 characters issue reported by checkpatch.pl.

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

index 9120df79d7036a87ededf47180696bcd217ee434..7c23b8e4eb90c2a2f0821fc3880eaa2224bd9ecf 100644 (file)
@@ -276,14 +276,14 @@ static void usbduxfast_ai_interrupt(struct urb *urb)
                        /* not continuous, fixed number of samples */
                        n = urb->actual_length / sizeof(uint16_t);
                        if (unlikely(devpriv->ai_sample_count < n)) {
-                               /*
-                                * we have send only a fraction of the bytes
-                                * received
-                                */
+                               unsigned int num_bytes;
+
+                               /* partial sample received */
+                               num_bytes = devpriv->ai_sample_count *
+                                           sizeof(uint16_t);
                                cfc_write_array_to_buffer(s,
                                                          urb->transfer_buffer,
-                                                         devpriv->ai_sample_count
-                                                         * sizeof(uint16_t));
+                                                         num_bytes);
                                usbduxfast_ai_stop(dev, 0);
                                /* tell comedi that the acquistion is over */
                                async->events |= COMEDI_CB_EOA;