]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/platform/x86/sony-laptop.c
Rationalize fasync return values
[net-next-2.6.git] / drivers / platform / x86 / sony-laptop.c
index 537959d07148a9c3f1e76ec0637b6de3c65ac1cb..bc8996c849acbd0ac163db6d48744370c7df5734 100644 (file)
@@ -1917,12 +1917,7 @@ static struct sonypi_compat_s sonypi_compat = {
 
 static int sonypi_misc_fasync(int fd, struct file *filp, int on)
 {
-       int retval;
-
-       retval = fasync_helper(fd, filp, on, &sonypi_compat.fifo_async);
-       if (retval < 0)
-               return retval;
-       return 0;
+       return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async);
 }
 
 static int sonypi_misc_release(struct inode *inode, struct file *file)