From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ob0-f170.google.com ([209.85.214.170]:34549 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbbHCIAu (ORCPT ); Mon, 3 Aug 2015 04:00:50 -0400 Received: by obre1 with SMTP id e1so93554910obr.1 for ; Mon, 03 Aug 2015 01:00:49 -0700 (PDT) From: Pradheep Shrinivasan To: Jarod Wilson , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , Tapasweni Pathak , 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: Mon, 3 Aug 2015 02:56:31 -0500 Message-Id: <1438588592-3289-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