summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorIan Abbott2013-02-07 17:03:00 +0100
committerGreg Kroah-Hartman2013-02-08 02:17:16 +0100
commitda7185462e86b4832342d7e02e52b889126a0fcf (patch)
tree45b363619499bf5fa6d9533004622d67ce8b0bb9 /drivers/staging/comedi/comedi_fops.c
parentstaging/goldfish: Add MTD dependency to KCONFIG (diff)
downloadkernel-qcow2-linux-da7185462e86b4832342d7e02e52b889126a0fcf.tar.gz
kernel-qcow2-linux-da7185462e86b4832342d7e02e52b889126a0fcf.tar.xz
kernel-qcow2-linux-da7185462e86b4832342d7e02e52b889126a0fcf.zip
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>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r--drivers/staging/comedi/comedi_fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index b1e8cdbd1ce7..4f587ea13634 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -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)