linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Staging: media: lirc Braces not needed for single statement
@ 2015-10-23  6:36 Nilesh Kokane
  0 siblings, 0 replies; only message in thread
From: Nilesh Kokane @ 2015-10-23  6:36 UTC (permalink / raw)
  To: mchehab
  Cc: gregkh, linux-media, devel, linux-kernel, suneel.raikar, Nilesh Kokane

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-23  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23  6:36 [PATCH] Staging: media: lirc Braces not needed for single statement Nilesh Kokane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).