]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] staging:media:lirc Remove the extra braces in if statement of lirc_imon
authorpradheep <pradheep.sh@gmail.com>
Mon, 3 Aug 2015 07:56:31 +0000 (04:56 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 20:59:35 +0000 (17:59 -0300)
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>
drivers/staging/media/lirc/lirc_imon.c

index 62ec9f70dae4cd87dcf6fb60b1dd81df3d568b19..05d47dc8ffb8a987dc65287d36096a78cd5f96cd 100644 (file)
@@ -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;