Commit 346b0d4a authored by Ebru Akagunduz's avatar Ebru Akagunduz Committed by Greg Kroah-Hartman

staging: ft1000: Remove curly braces for single statement blocks

This patch removes curly braces for single statement
blocks using following coccinelle script:

@@
expression e1;
@@

- if (e1) {
+ if (e1)
        return ...;
- }
Signed-off-by: default avatarEbru Akagunduz <ebru.akagunduz@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b9214b7
......@@ -540,17 +540,14 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
/* DEBUG("FT1000:ft1000_ioctl: IOCTL_FT1000_SET_DPRAM called\n");*/
if (ft1000_flarion_cnt == 0) {
if (ft1000_flarion_cnt == 0)
return -EBADF;
}
if (ft1000dev->DrvMsgPend) {
if (ft1000dev->DrvMsgPend)
return -ENOTTY;
}
if (ft1000dev->fProvComplete == 0) {
if (ft1000dev->fProvComplete == 0)
return -EACCES;
}
ft1000dev->fAppMsgPend = 1;
......@@ -677,9 +674,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
/* DEBUG("FT1000:ft1000_ioctl: IOCTL_FT1000_GET_DPRAM called\n"); */
if (ft1000_flarion_cnt == 0) {
if (ft1000_flarion_cnt == 0)
return -EBADF;
}
/* Search for matching file object */
for (i=0; i<MAX_NUM_APP; i++) {
......
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