Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1257840 > unrolled thread
| Started by | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| First post | 2015-10-28 10:20 +0100 |
| Last post | 2015-10-28 10:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 07/11] parport: remove braces Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-10-28 10:20 +0100
| From | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| Date | 2015-10-28 10:20 +0100 |
| Subject | [PATCH v2 07/11] parport: remove braces |
| Message-ID | <qov3I-If-45@gated-at.bofh.it> |
checkpatch was complaining about braces for single statement block.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
drivers/parport/share.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index dcad902..5dbd6f4 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;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web