diff options
author | Ebru Akagunduz <ebru.akagunduz@gmail.com> | 2014-10-28 10:46:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-28 16:53:09 +0800 |
commit | 346b0d4a0818fa76bfe0dbe67c6c7ad3e19845e1 (patch) | |
tree | 65c54fa5fc45ca1b5e54980079d0c3762ea10503 /drivers/staging/ft1000 | |
parent | 6b9214b793a4ae2350f748a587a61a267bfd119b (diff) |
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: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
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 | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c index 5899c4eca41f..4672c4d56205 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c @@ -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++) { |