projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee6cda
)
Silenced gcc 4.1.2 compile warning.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 19 Apr 2007 18:59:59 +0000
(18:59 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 19 Apr 2007 18:59:59 +0000
(18:59 +0000)
comedi/drivers/ni_65xx.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_65xx.c
b/comedi/drivers/ni_65xx.c
index 2be6347426f05d6055372b7ceb327b2411e39138..1d1549298c03b4e8d80fb415f278bcb97f7bc23c 100644
(file)
--- a/
comedi/drivers/ni_65xx.c
+++ b/
comedi/drivers/ni_65xx.c
@@
-361,8
+361,10
@@
static int ni_65xx_config_filter(comedi_device *dev, comedi_subdevice *s,
static int ni_65xx_dio_insn_config(comedi_device *dev,comedi_subdevice *s,
comedi_insn *insn,lsampl_t *data)
{
+ unsigned port;
+
if(insn->n < 1) return -EINVAL;
-
unsigned
port = sprivate(s)->base_port + ni_65xx_port_by_channel(CR_CHAN(insn->chanspec));
+ port = sprivate(s)->base_port + ni_65xx_port_by_channel(CR_CHAN(insn->chanspec));
switch(data[0])
{
case INSN_CONFIG_FILTER: