mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pushpendra Singh <pushpendra.singh@smartplayin.com>
To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
	marek.belisko@gmail.com, gregkh@linuxfoundation.org
Cc: Pushpendra Singh <pushpendra.singh@smartplayin.com>
Subject: [PATCH 5/8] staging: ft1000: ft1000-usb: removed unnecessary braces
Date: Fri,  6 Feb 2015 16:14:58 +0530	[thread overview]
Message-ID: <1423219501-18850-5-git-send-email-pushpendra.singh@smartplayin.com> (raw)
In-Reply-To: <1423219501-18850-1-git-send-email-pushpendra.singh@smartplayin.com>

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 <pushpendra.singh@smartplayin.com>
---
 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 763ffa8..f2c9507 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


  parent reply	other threads:[~2015-02-06 10:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06 10:44 [PATCH 1/8] staging: ft1000: ft1000-pcmcia: " Pushpendra Singh
2015-02-06 10:44 ` [PATCH 2/8] staging: ft1000: ft1000-pcmcia: remove unnecessary parentheses Pushpendra Singh
2015-02-06 10:44 ` [PATCH 3/8] staging: ft1000: ft1000-pcmcia: remove unnecessary out of memory warning Pushpendra Singh
2015-02-06 10:44 ` [PATCH 4/8] staging: ft1000: ft1000-pcmcia: add blank line after declarations Pushpendra Singh
2015-02-06 10:44 ` Pushpendra Singh [this message]
2015-02-06 10:44 ` [PATCH 6/8] staging: ft1000: ft1000-usb: remove unnecessary parentheses Pushpendra Singh
2015-02-06 10:45 ` [PATCH 7/8] staging: ft1000: ft1000-usb: remove conditional statement Pushpendra Singh
2015-02-06 10:45 ` [PATCH 8/8] staging: ft1000: ft1000-usb: remove unnecessary out of memory warning Pushpendra Singh
2015-02-07  9:42 ` [PATCH 1/8] staging: ft1000: ft1000-pcmcia: removed unnecessary braces Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423219501-18850-5-git-send-email-pushpendra.singh@smartplayin.com \
    --to=pushpendra.singh@smartplayin.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marek.belisko@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®