Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759591AbbBIHLF (ORCPT ); Mon, 9 Feb 2015 02:11:05 -0500 Received: from smtp73.ord1c.emailsrvr.com ([108.166.43.73]:46299 "EHLO smtp73.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759369AbbBIHLB (ORCPT ); Mon, 9 Feb 2015 02:11:01 -0500 X-Sender-Id: pushpendra.singh@smartplayin.com From: Pushpendra Singh To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, marek.belisko@gmail.com, gregkh@linuxfoundation.org Cc: Pushpendra Singh Subject: [PATCH v2 5/7] staging: ft1000: ft1000-usb: removed unnecessary braces Date: Mon, 9 Feb 2015 12:42:02 +0530 Message-Id: <1423465924-22424-5-git-send-email-pushpendra.singh@smartplayin.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423465924-22424-1-git-send-email-pushpendra.singh@smartplayin.com> References: <1423465924-22424-1-git-send-email-pushpendra.singh@smartplayin.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2080 Lines: 56 Removed Checkpatch.pl warning WARNING: braces {} are not necessary for single statement blocks + if (dev->app_info[i].fileobject == NULL) { + break; + } Signed-off-by: Pushpendra Singh --- drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c index 25166db..bd0d25c 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c @@ -317,9 +317,8 @@ static int ft1000_open(struct inode *inode, struct file *file) /* Search for available application info block */ for (i = 0; i < MAX_NUM_APP; i++) { - if (dev->app_info[i].fileobject == NULL) { + if (dev->app_info[i].fileobject == NULL) break; - } } /* Fail due to lack of application info block */ @@ -575,9 +574,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, } else { /* Check if this message came from a registered application */ for (i = 0; i < MAX_NUM_APP; i++) { - if (ft1000dev->app_info[i].fileobject == &file->f_owner) { + if (ft1000dev->app_info[i].fileobject == &file->f_owner) break; - } } if (i == MAX_NUM_APP) { pr_debug("No matching application fileobject\n"); @@ -629,9 +627,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, pmsg = (u16 *)&dpram_data->pseudohdr; ppseudo_hdr = (struct pseudo_hdr *)pmsg; total_len = msgsz+2; - if (total_len & 0x1) { + if (total_len & 0x1) total_len++; - } /* Insert slow queue sequence number */ ppseudo_hdr->seq_num = info->squeseqnum++; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/