staging: comedi: fix coding style issues in comedi_fops.c
authorRaghavendra Ganiga <ravi23ganiga@gmail.com>
Thu, 1 May 2014 08:23:12 +0000 (13:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:59:43 +0000 (19:59 -0400)
This is a patch to fix coding style
warnings found by checkpatch.pl tool

Signed-off-by: Raghavendra Chandra Ganiga <ravi23ganiga@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c

index 70545e670dd0b8ccb3b8aeb54c7f85bc4711db76..b24bf9bcbe2d400350a6f268dd7fecb27a7889a9 100644 (file)
@@ -668,6 +668,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev,
                        return -EBUSY;
                if (dev->attached) {
                        struct module *driver_module = dev->driver->module;
+
                        comedi_device_detach(dev);
                        module_put(driver_module);
                }
@@ -2653,6 +2654,7 @@ static int __init comedi_init(void)
        /* create devices files for legacy/manual use */
        for (i = 0; i < comedi_num_legacy_minors; i++) {
                struct comedi_device *dev;
+
                dev = comedi_alloc_board_minor(NULL);
                if (IS_ERR(dev)) {
                        comedi_cleanup_board_minors();