mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
staging: comedi: don't return minor from comedi_alloc_subdevice_minor()
`comedi_alloc_subdevice_minor()` currently returns the allocated minor device number on success. This is not really of any interest to the caller (in fact the return value is not even checked), so just return 0 on success. If the caller really needs to know the allocated minor device number it can look in `s->minor`. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f6fcf7f79b
commit
da7185462e
@ -2383,7 +2383,7 @@ int comedi_alloc_subdevice_minor(struct comedi_subdevice *s)
|
||||
s->class_dev = csdev;
|
||||
dev_set_drvdata(csdev, info);
|
||||
|
||||
return i;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void comedi_free_subdevice_minor(struct comedi_subdevice *s)
|
||||
|
Loading…
Reference in New Issue
Block a user