From: Janakarajan Natarajan <janakarajann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Joe Perches <joe@perches.com>,
devel@driverdev.osuosl.org
Cc: Marek Belisko <marek.belisko@gmail.com>,
linux-kernel@vger.kernel.org,
Janakarajan Natarajan <janakarajann@gmail.com>
Subject: [PATCHv2 1/5] Drivers: Staging: ft1000: Single line if-statement changes
Date: Wed, 18 Mar 2015 13:56:32 -0700 [thread overview]
Message-ID: <1426712196-7288-2-git-send-email-janakarajann@gmail.com> (raw)
In-Reply-To: <1426712196-7288-1-git-send-email-janakarajann@gmail.com>
Minor change to remove {} for single line if statements
Signed-off-by: Janakarajan Natarajan <janakarajann@gmail.com>
---
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
index c8d2782..8fb0f5a 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");
--
1.9.1
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
next prev parent reply other threads:[~2015-03-18 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 20:56 [PATCHv2 0/5] ft1000 driver checkpatch.pl fixes Janakarajan Natarajan
2015-03-18 20:56 ` Janakarajan Natarajan [this message]
2015-03-18 20:56 ` [PATCHv2 2/5] Drivers: Staging: ft1000: Fix extra parenthesis warnings Janakarajan Natarajan
2015-03-18 20:56 ` [PATCHv2 3/5] Drivers: Staging: ft1000: Refactoring if-else statement Janakarajan Natarajan
2015-03-18 20:56 ` [PATCHv2 4/5] Drivers: Staging: ft1000: Fix blank line warning Janakarajan Natarajan
2015-03-18 20:56 ` [PATCHv2 5/5] Drivers: Staging: ft1000: checkpatch.pl header file warning fix Janakarajan Natarajan
2015-03-26 10:07 ` [PATCHv2 0/5] ft1000 driver checkpatch.pl fixes Greg Kroah-Hartman
[not found] ` <CAJo0J4xzWVjEhTe1-N24PJOzSPbZQbksyWzHCk5X+nYxmWmS6Q@mail.gmail.com>
2015-03-31 16:00 ` Greg Kroah-Hartman
[not found] ` <CAJo0J4w7EPyc7mmugkEoh5Tvar_e_zT1V9bb1oWU9kAhgQYTkQ@mail.gmail.com>
2015-04-01 19:32 ` Joe Perches
-- strict thread matches above, loose matches on Subject: below --
2015-03-11 21:03 [PATCH 1/1] Drivers: Staging: ft1000: checkpatch warning fixes Janakarajan Natarajan
2015-03-13 2:42 ` [PATCHv2 0/5] ft1000 driver checkpatch.pl fixes Janakarajan Natarajan
2015-03-13 2:42 ` [PATCHv2 1/5] Drivers: Staging: ft1000: Single line if-statement changes Janakarajan Natarajan
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=1426712196-7288-2-git-send-email-janakarajann@gmail.com \
--to=janakarajann@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--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;
as well as URLs for NNTP newsgroup(s).