diff options
author | Yeliz Taneroglu | 2015-02-26 21:05:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-02-27 00:15:22 +0100 |
commit | a786b7789345a7c918c947d2a0e218ac8e918ae6 (patch) | |
tree | 1b1cf23c86fb02b7572c81b495efc090efe6f634 /drivers/staging/ft1000 | |
parent | staging: ft1000: ft1000-pcmcia: Added missing blank line. (diff) | |
download | kernel-qcow2-linux-a786b7789345a7c918c947d2a0e218ac8e918ae6.tar.gz kernel-qcow2-linux-a786b7789345a7c918c947d2a0e218ac8e918ae6.tar.xz kernel-qcow2-linux-a786b7789345a7c918c947d2a0e218ac8e918ae6.zip |
Staging: ft1000: Removed unnecessary braces
The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 9 |
1 files 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 c8d278229940..da34257f0e2b 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++; |