parport: remove braces
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 28 Oct 2015 09:11:36 +0000 (14:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Jan 2016 00:32:59 +0000 (16:32 -0800)
checkpatch was complaining about braces for single statement block.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/share.c

index dcad902f04a47acb89f412abba71ee85d553a7ef..5dbd6f434a9155b00510844d4e47b725577020fe 100644 (file)
@@ -735,9 +735,8 @@ parport_register_device(struct parport *port, const char *name,
         * neither of us gets unloaded while we sleep in (e.g.)
         * kmalloc.
         */
-       if (!try_module_get(port->ops->owner)) {
+       if (!try_module_get(port->ops->owner))
                return NULL;
-       }
 
        parport_get_port (port);
 
@@ -1261,9 +1260,8 @@ int parport_claim_or_block(struct pardevice *dev)
                if (dev->waiting) {
                        wait_event_interruptible(dev->wait_q,
                                                 !dev->waiting);
-                       if (signal_pending (current)) {
+                       if (signal_pending (current))
                                return -EINTR;
-                       }
                        r = 1;
                } else {
                        r = 0;