Messages in this thread Patch in this message | | | From | Janakarajan Natarajan <> | Subject | [PATCHv2 1/5] Drivers: Staging: ft1000: Single line if-statement changes | Date | Wed, 18 Mar 2015 13:56:32 -0700 |
| |
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
| |