diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-10-28 05:11:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-03 19:32:59 -0500 |
commit | 13efa75d4e5d467f685bd54df310919ae4dc8eac (patch) | |
tree | 49761fd95b99ab4701c7eee7cf528d7ae4e4eb11 /drivers/parport | |
parent | a162188f9ca940b84a9ea61d88b50a8f408e0c0c (diff) |
parport: remove braces
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>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/share.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c index dcad902f04a4..5dbd6f434a91 100644 --- a/drivers/parport/share.c +++ b/drivers/parport/share.c | |||
@@ -735,9 +735,8 @@ parport_register_device(struct parport *port, const char *name, | |||
735 | * neither of us gets unloaded while we sleep in (e.g.) | 735 | * neither of us gets unloaded while we sleep in (e.g.) |
736 | * kmalloc. | 736 | * kmalloc. |
737 | */ | 737 | */ |
738 | if (!try_module_get(port->ops->owner)) { | 738 | if (!try_module_get(port->ops->owner)) |
739 | return NULL; | 739 | return NULL; |
740 | } | ||
741 | 740 | ||
742 | parport_get_port (port); | 741 | parport_get_port (port); |
743 | 742 | ||
@@ -1261,9 +1260,8 @@ int parport_claim_or_block(struct pardevice *dev) | |||
1261 | if (dev->waiting) { | 1260 | if (dev->waiting) { |
1262 | wait_event_interruptible(dev->wait_q, | 1261 | wait_event_interruptible(dev->wait_q, |
1263 | !dev->waiting); | 1262 | !dev->waiting); |
1264 | if (signal_pending (current)) { | 1263 | if (signal_pending (current)) |
1265 | return -EINTR; | 1264 | return -EINTR; |
1266 | } | ||
1267 | r = 1; | 1265 | r = 1; |
1268 | } else { | 1266 | } else { |
1269 | r = 0; | 1267 | r = 0; |