summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ft1000/ft1000-usb/ft1000_debug.c')
-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