summaryrefslogtreecommitdiffstats
path: root/vidix/kernelhelper/dhahelper.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-16 00:13:03 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-16 00:13:03 +0000
commit3acba2c82d002736a5917ad412b34ee0416ba2ac (patch)
treeb30a0a98e033894544af0a328f6aff3b6d4f8e36 /vidix/kernelhelper/dhahelper.c
parent7c0eee9bce417dccfce072bce38e50a4321b96a9 (diff)
downloadmpv-3acba2c82d002736a5917ad412b34ee0416ba2ac.tar.bz2
mpv-3acba2c82d002736a5917ad412b34ee0416ba2ac.tar.xz
cosmetics: Remove useless parentheses from return statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26785 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/kernelhelper/dhahelper.c')
-rw-r--r--vidix/kernelhelper/dhahelper.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/vidix/kernelhelper/dhahelper.c b/vidix/kernelhelper/dhahelper.c
index f5b6fe825c..5d501e94e6 100644
--- a/vidix/kernelhelper/dhahelper.c
+++ b/vidix/kernelhelper/dhahelper.c
@@ -106,11 +106,11 @@ static int dhahelper_open(struct inode *inode, struct file *file)
printk(KERN_DEBUG "dhahelper: device opened\n");
if (MINOR(inode->i_rdev) != 0)
- return(-ENXIO);
+ return -ENXIO;
MOD_INC_USE_COUNT;
- return(0);
+ return 0;
}
static int dhahelper_release(struct inode *inode, struct file *file)
@@ -119,11 +119,11 @@ static int dhahelper_release(struct inode *inode, struct file *file)
printk(KERN_DEBUG "dhahelper: device released\n");
if (MINOR(inode->i_rdev) != 0)
- return(-ENXIO);
+ return -ENXIO;
MOD_DEC_USE_COUNT;
- return(0);
+ return 0;
}
static int dhahelper_ioctl(struct inode *inode, struct file *file,
@@ -134,7 +134,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
cmd, arg);
if (MINOR(inode->i_rdev) != 0)
- return(-ENXIO);
+ return -ENXIO;
switch(cmd)
{
@@ -146,7 +146,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: failed copy to userspace\n");
- return(-EFAULT);
+ return -EFAULT;
}
break;
@@ -159,7 +159,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: failed copy from userspace\n");
- return(-EFAULT);
+ return -EFAULT;
}
switch(port.operation)
@@ -181,7 +181,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: invalid port read size (%d)\n",
port.size);
- return(-EINVAL);
+ return -EINVAL;
}
break;
}
@@ -202,7 +202,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: invalid port write size (%d)\n",
port.size);
- return(-EINVAL);
+ return -EINVAL;
}
break;
}
@@ -210,7 +210,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: invalid port operation (%d)\n",
port.operation);
- return(-EINVAL);
+ return -EINVAL;
}
/* copy back only if read was performed */
@@ -219,7 +219,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: failed copy to userspace\n");
- return(-EFAULT);
+ return -EFAULT;
}
break;
@@ -232,7 +232,7 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: failed copy from userspace\n");
- return(-EFAULT);
+ return -EFAULT;
}
switch(mem.operation)
@@ -254,14 +254,14 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: invalid memory operation (%d)\n",
mem.operation);
- return(-EINVAL);
+ return -EINVAL;
}
if (copy_to_user((dhahelper_memory_t *)arg, &mem, sizeof(dhahelper_memory_t)))
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: failed copy to userspace\n");
- return(-EFAULT);
+ return -EFAULT;
}
break;
@@ -269,10 +269,10 @@ static int dhahelper_ioctl(struct inode *inode, struct file *file,
default:
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: invalid ioctl (%x)\n", cmd);
- return(-EINVAL);
+ return -EINVAL;
}
- return(0);
+ return 0;
}
static int dhahelper_mmap(struct file *file, struct vm_area_struct *vma)
@@ -281,7 +281,7 @@ static int dhahelper_mmap(struct file *file, struct vm_area_struct *vma)
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: mapping not requested before mmap\n");
- return(-EFAULT);
+ return -EFAULT;
}
if (dhahelper_verbosity > 1)
@@ -293,10 +293,10 @@ static int dhahelper_mmap(struct file *file, struct vm_area_struct *vma)
{
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: error mapping memory\n");
- return(-EFAULT);
+ return -EFAULT;
}
- return(0);
+ return 0;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
@@ -338,10 +338,10 @@ static int __init init_dhahelper(void)
if (dhahelper_verbosity > 0)
printk(KERN_ERR "dhahelper: unable to register character device (major: %d)\n",
dhahelper_major);
- return(-EIO);
+ return -EIO;
}
- return(0);
+ return 0;
}
#if KERNEL_VERSION < KERNEL_VERSION(2,4,0)