/* 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 */
/* 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) {
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); */
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;
/* DEBUG("FT1000:ft1000_ioctl: IOCTL_FT1000_GET_DPRAM called\n"); */
if (ft1000_flarion_cnt == 0) {
- return (-EBADF);
+ return -EBADF;
}
/* Search for matching file object */
if (ft1000_flarion_cnt == 0) {
ft1000dev->appcnt--;
- return (-EBADF);
+ return -EBADF;
}
/* Search for matching file object */