Skip to content

Commit

Permalink
staging: comedi: adl_pci6208: cleanup pci6208_ao_rinsn()
Browse files Browse the repository at this point in the history
For aesthetic reasons, reorder the local variables and change
the return value to 'insn->n'.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 8366404 commit 7c1e5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/comedi/drivers/adl_pci6208.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ static int pci6208_ao_rinsn(struct comedi_device *dev,
struct comedi_insn *insn, unsigned int *data)
{
struct pci6208_private *devpriv = dev->private;
int i;
int chan = CR_CHAN(insn->chanspec);
int i;

for (i = 0; i < insn->n; i++)
data[i] = devpriv->ao_readback[chan];

return i;
return insn->n;
}

static int pci6208_dio_insn_bits(struct comedi_device *dev,
Expand Down

0 comments on commit 7c1e5bc

Please sign in to comment.