Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325458
b: refs/heads/master
c: d52f042
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent f72059e commit 7f15657
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 898143bd1ac1550f3b2b2eaf397b13fc1d1889d1
refs/heads/master: d52f042ce5d64bbc56160e3653de064d380120c7
5 changes: 0 additions & 5 deletions trunk/drivers/staging/comedi/drivers/s526.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ static int s526_gpct_rinsn(struct comedi_device *dev,
unsigned short datalow;
unsigned short datahigh;

/* Check if (n > 0) */
if (insn->n <= 0) {
printk(KERN_ERR "s526: INSN_READ: n should be > 0\n");
return -EINVAL;
}
/* Read the low word first */
for (i = 0; i < insn->n; i++) {
datalow = inw(dev->iobase + REG_C0L + counter_channel * 8);
Expand Down

0 comments on commit 7f15657

Please sign in to comment.