Commit 4bac39f6 authored by Raghavendra Ganiga's avatar Raghavendra Ganiga Committed by Greg Kroah-Hartman

staging: comedi: fix coding style issues in comedi_fops.c

This is a patch to fix coding style
warnings found by checkpatch.pl tool
Signed-off-by: default avatarRaghavendra Chandra Ganiga <ravi23ganiga@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 66d76f19
...@@ -668,6 +668,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev, ...@@ -668,6 +668,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev,
return -EBUSY; return -EBUSY;
if (dev->attached) { if (dev->attached) {
struct module *driver_module = dev->driver->module; struct module *driver_module = dev->driver->module;
comedi_device_detach(dev); comedi_device_detach(dev);
module_put(driver_module); module_put(driver_module);
} }
...@@ -2653,6 +2654,7 @@ static int __init comedi_init(void) ...@@ -2653,6 +2654,7 @@ static int __init comedi_init(void)
/* create devices files for legacy/manual use */ /* create devices files for legacy/manual use */
for (i = 0; i < comedi_num_legacy_minors; i++) { for (i = 0; i < comedi_num_legacy_minors; i++) {
struct comedi_device *dev; struct comedi_device *dev;
dev = comedi_alloc_board_minor(NULL); dev = comedi_alloc_board_minor(NULL);
if (IS_ERR(dev)) { if (IS_ERR(dev)) {
comedi_cleanup_board_minors(); comedi_cleanup_board_minors();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment