From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-oi0-f45.google.com ([209.85.218.45]:35762 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbbHEFPO (ORCPT ); Wed, 5 Aug 2015 01:15:14 -0400 Received: by oihn130 with SMTP id n130so16949713oih.2 for ; Tue, 04 Aug 2015 22:15:13 -0700 (PDT) From: Pradheep Shrinivasan To: Jarod Wilson , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, pradheep 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 Message-Id: <1438751698-8254-1-git-send-email-pradheep.sh@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: From: pradheep 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 --- 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