From: Pradheep Shrinivasan <pradheep.sh@gmail.com>
To: Jarod Wilson <jarod@wilsonet.com>,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org,
pradheep <pradheep.sh@gmail.com>
Subject: [PATCH 1/2] staging: media: lirc Remove the extra braces in if statement of lirc_imon
Date: Wed, 5 Aug 2015 00:14:55 -0500 [thread overview]
Message-ID: <1438751698-8254-1-git-send-email-pradheep.sh@gmail.com> (raw)
From: pradheep <pradheep.sh@gmail.com>
This patche removes the extra braces found in
drivers/staging/media/lirc/lirc_imon.c to fix the warning thrown by
checkpatch.pl
Signed-off-by: Pradheep Shrinivasan <pradheep.sh@gmail.com>
---
drivers/staging/media/lirc/lirc_imon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c
index 62ec9f7..05d47dc 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -785,13 +785,13 @@ 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
next reply other threads:[~2015-08-05 5:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 5:14 Pradheep Shrinivasan [this message]
2015-08-05 5:14 ` [PATCH 2/2] staging: media: lirc This fix changes the spaces to tab in lirc_sasem.c Pradheep Shrinivasan
2015-08-05 5:14 ` [PATCH 1/2] Remove the extra braces in if statement of lirc_imon Pradheep Shrinivasan
2015-08-05 5:45 ` [PATCH 1/2] staging: media: lirc " Sudip Mukherjee
-- strict thread matches above, loose matches on Subject: below --
2015-08-05 5:17 Pradheep Shrinivasan
2015-08-03 7:56 [PATCH 1/2] staging:media:lirc " Pradheep Shrinivasan
2015-08-03 8:25 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438751698-8254-1-git-send-email-pradheep.sh@gmail.com \
--to=pradheep.sh@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=jarod@wilsonet.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox