lib/data.c: remove unused variables
Remove unused variable 's' from comedi_data_write() and comedi_data_read_delayed().
This commit is contained in:
parent
0868eccbf7
commit
fdf9d2d98b
1 changed files with 0 additions and 7 deletions
|
@ -39,13 +39,9 @@ EXPORT_ALIAS_DEFAULT(_comedi_data_write,comedi_data_write,0.7.18);
|
|||
int _comedi_data_write(comedi_t *it,unsigned int subdev,unsigned int chan,unsigned int range,
|
||||
unsigned int aref,lsampl_t data)
|
||||
{
|
||||
subdevice *s;
|
||||
|
||||
if(!valid_chan(it,subdev,chan))
|
||||
return -1;
|
||||
|
||||
s=it->subdevices+subdev;
|
||||
|
||||
if(it->has_insnlist_ioctl){
|
||||
comedi_insn insn;
|
||||
|
||||
|
@ -193,7 +189,6 @@ int _comedi_data_read_delayed( comedi_t *it, unsigned int subdev,
|
|||
unsigned int chan, unsigned int range, unsigned int aref,
|
||||
lsampl_t *data, unsigned int nano_sec)
|
||||
{
|
||||
subdevice *s;
|
||||
comedi_insnlist ilist;
|
||||
comedi_insn insn[3];
|
||||
lsampl_t delay = nano_sec;
|
||||
|
@ -201,8 +196,6 @@ int _comedi_data_read_delayed( comedi_t *it, unsigned int subdev,
|
|||
if( !valid_chan( it, subdev, chan ) )
|
||||
return -1;
|
||||
|
||||
s = it->subdevices + subdev;
|
||||
|
||||
memset( insn, 0, sizeof(insn) );
|
||||
memset( &ilist, 0, sizeof(ilist) );
|
||||
memset(data, 0, sizeof(*data)); // for valgrind
|
||||
|
|
Loading…
Add table
Reference in a new issue