Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1254357 > unrolled thread

[PATCH] Staging: media: lirc Braces not needed for single statement

Started byNilesh Kokane <nilesh.kokane05@gmail.com>
First post2015-10-23 08:40 +0200
Last post2015-10-23 08:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging: media: lirc Braces not needed for single statement Nilesh Kokane <nilesh.kokane05@gmail.com> - 2015-10-23 08:40 +0200

#1254357 — [PATCH] Staging: media: lirc Braces not needed for single statement

FromNilesh Kokane <nilesh.kokane05@gmail.com>
Date2015-10-23 08:40 +0200
Subject[PATCH] Staging: media: lirc Braces not needed for single statement
Message-ID<qmEb8-1Kb-3@gated-at.bofh.it>
Fixed the braces issue for single statement.

Signed-off-by: Nilesh Kokane <Nilesh.Kokane05@gmail.com>
---
 drivers/staging/media/lirc/lirc_imon.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c
index 62ec9f7..a6cae49 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -785,13 +785,11 @@ static int imon_probe(struct usb_interface *interface,
 	}
 
 	driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
-	if (!driver) {
+	if (!driver)
 		goto free_context;
-	}
 	rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
-	if (!rbuf) {
+	if (!rbuf)
 		goto free_driver;
-	}
 	if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) {
 		dev_err(dev, "%s: lirc_buffer_init failed\n", __func__);
 		goto free_rbuf;
-- 
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web