From: H Hartley Sweeten Date: Tue, 14 May 2013 20:39:15 +0000 (-0700) Subject: staging: comedi: usbduxfast: fix a > 80 char line issue X-Git-Tag: firefly_0821_release~176^2~5845^2~643 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=060f2154d3d6f3c9daac444b482982c3ab845200;p=firefly-linux-kernel-4.4.55.git staging: comedi: usbduxfast: fix a > 80 char line issue Fix a line over 80 characters issue reported by checkpatch.pl. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 9120df79d703..7c23b8e4eb90 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -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;