Commit a786b778 authored by Yeliz Taneroglu's avatar Yeliz Taneroglu Committed by Greg Kroah-Hartman

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: default avatarYeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5d5030d
...@@ -317,10 +317,9 @@ static int ft1000_open(struct inode *inode, struct file *file) ...@@ -317,10 +317,9 @@ static int ft1000_open(struct inode *inode, struct file *file)
/* Search for available application info block */ /* Search for available application info block */
for (i = 0; i < MAX_NUM_APP; i++) { for (i = 0; i < MAX_NUM_APP; i++) {
if ((dev->app_info[i].fileobject == NULL)) { if ((dev->app_info[i].fileobject == NULL))
break; break;
} }
}
/* Fail due to lack of application info block */ /* Fail due to lack of application info block */
if (i == MAX_NUM_APP) { if (i == MAX_NUM_APP) {
...@@ -575,10 +574,9 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -575,10 +574,9 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
} else { } else {
/* Check if this message came from a registered application */ /* Check if this message came from a registered application */
for (i = 0; i < MAX_NUM_APP; i++) { 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; break;
} }
}
if (i == MAX_NUM_APP) { if (i == MAX_NUM_APP) {
pr_debug("No matching application fileobject\n"); pr_debug("No matching application fileobject\n");
result = -EINVAL; result = -EINVAL;
...@@ -629,9 +627,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -629,9 +627,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
pmsg = (u16 *)&dpram_data->pseudohdr; pmsg = (u16 *)&dpram_data->pseudohdr;
ppseudo_hdr = (struct pseudo_hdr *)pmsg; ppseudo_hdr = (struct pseudo_hdr *)pmsg;
total_len = msgsz+2; total_len = msgsz+2;
if (total_len & 0x1) { if (total_len & 0x1)
total_len++; total_len++;
}
/* Insert slow queue sequence number */ /* Insert slow queue sequence number */
ppseudo_hdr->seq_num = info->squeseqnum++; ppseudo_hdr->seq_num = info->squeseqnum++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment