summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorpradheep <pradheep.sh@gmail.com>2015-08-03 04:56:31 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-11 17:59:35 -0300
commit7229f8c143dd932719530fb2fe4883f011917554 (patch)
tree0a1f19314d75aa4923d2975821406ff18788f493 /drivers/staging/media
parent5473387b9382a35967d1fcd550482efa3a31d44f (diff)
downloadlinux-7229f8c143dd932719530fb2fe4883f011917554.tar.bz2
[media] staging:media:lirc Remove the extra braces in if statement of lirc_imon
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/lirc/lirc_imon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c
index 62ec9f70dae4..05d47dc8ffb8 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;