Commit 7229f8c1 authored by pradheep's avatar pradheep Committed by Mauro Carvalho Chehab

[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: default avatarPradheep Shrinivasan <pradheep.sh@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5473387b
...@@ -785,13 +785,13 @@ static int imon_probe(struct usb_interface *interface, ...@@ -785,13 +785,13 @@ static int imon_probe(struct usb_interface *interface,
} }
driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
if (!driver) { if (!driver)
goto free_context; goto free_context;
}
rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL); rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL);
if (!rbuf) { if (!rbuf)
goto free_driver; goto free_driver;
}
if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) { if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) {
dev_err(dev, "%s: lirc_buffer_init failed\n", __func__); dev_err(dev, "%s: lirc_buffer_init failed\n", __func__);
goto free_rbuf; goto free_rbuf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment