summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ft1000
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2014-10-20 10:24:49 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-23 12:31:18 +0800
commit93164c03ae7144bc4d9593a962a9169e9675dc3f (patch)
tree3ad26bb79b3beb551db797a5515d38c72643a8f6 /drivers/staging/ft1000
parent705515cdcdf972ad9df4d1a9874d0e94a3cad517 (diff)
downloadop-kernel-dev-93164c03ae7144bc4d9593a962a9169e9675dc3f.zip
op-kernel-dev-93164c03ae7144bc4d9593a962a9169e9675dc3f.tar.gz
staging: ft1000: Remove parentheses from return arguments
The sematic patch used for this is: // <smpl> @@ identifier i; constant c; @@ return - ( \(i\|-i\|i(...)\|c\) - ) ; // </smpl> Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> 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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
index 0f347ab..5899c4e 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
@@ -365,7 +365,7 @@ static unsigned int ft1000_poll_dev(struct file *file, poll_table *wait)
/* DEBUG("ft1000_poll_dev called\n"); */
if (ft1000_flarion_cnt == 0) {
DEBUG("FT1000:ft1000_poll_dev called when ft1000_flarion_cnt is zero\n");
- return (-EBADF);
+ return -EBADF;
}
/* Search for matching file object */
@@ -379,7 +379,7 @@ static unsigned int ft1000_poll_dev(struct file *file, poll_table *wait)
/* Could not find application info block */
if (i == MAX_NUM_APP) {
DEBUG("FT1000:ft1000_ioctl:Could not find application info block\n");
- return (-EACCES);
+ return -EACCES;
}
if (list_empty(&dev->app_info[i].app_sqlist) == 0) {
@@ -433,7 +433,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
if (ft1000_flarion_cnt == 0) {
DEBUG("FT1000:ft1000_ioctl called when ft1000_flarion_cnt is zero\n");
- return (-EBADF);
+ return -EBADF;
}
/* DEBUG("FT1000:ft1000_ioctl:command = 0x%x argument = 0x%8x\n", command, (u32)argument); */
@@ -541,15 +541,15 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
if (ft1000_flarion_cnt == 0) {
- return (-EBADF);
+ return -EBADF;
}
if (ft1000dev->DrvMsgPend) {
- return (-ENOTTY);
+ return -ENOTTY;
}
if (ft1000dev->fProvComplete == 0) {
- return (-EACCES);
+ return -EACCES;
}
ft1000dev->fAppMsgPend = 1;
@@ -678,7 +678,7 @@ 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) {
- return (-EBADF);
+ return -EBADF;
}
/* Search for matching file object */
@@ -762,7 +762,7 @@ static int ft1000_release(struct inode *inode, struct file *file)
if (ft1000_flarion_cnt == 0) {
ft1000dev->appcnt--;
- return (-EBADF);
+ return -EBADF;
}
/* Search for matching file object */
OpenPOWER on IntegriCloud