summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-10-28 14:41:36 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-03 16:32:59 -0800
commit13efa75d4e5d467f685bd54df310919ae4dc8eac (patch)
tree49761fd95b99ab4701c7eee7cf528d7ae4e4eb11 /drivers/parport
parenta162188f9ca940b84a9ea61d88b50a8f408e0c0c (diff)
downloadlinux-13efa75d4e5d467f685bd54df310919ae4dc8eac.tar.gz
linux-13efa75d4e5d467f685bd54df310919ae4dc8eac.tar.bz2
linux-13efa75d4e5d467f685bd54df310919ae4dc8eac.zip
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.c6
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,
* 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;