]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mpt3sas: don't wank with fasync on ->release()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 Apr 2013 17:31:14 +0000 (13:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2013 19:41:46 +0000 (15:41 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/mpt3sas/mpt3sas_ctl.c

index 054d5231c974771e5af6a47fe4f8e62e074d2578..0b402b6f2d26b34b486996e0fed738260b11ced2 100644 (file)
@@ -502,19 +502,6 @@ _ctl_fasync(int fd, struct file *filep, int mode)
        return fasync_helper(fd, filep, mode, &async_queue);
 }
 
-/**
- * _ctl_release -
- * @inode -
- * @filep -
- *
- * Called when application releases the fasyn callback handler.
- */
-static int
-_ctl_release(struct inode *inode, struct file *filep)
-{
-       return fasync_helper(-1, filep, 0, &async_queue);
-}
-
 /**
  * _ctl_poll -
  * @file -
@@ -3233,7 +3220,6 @@ struct device_attribute *mpt3sas_dev_attrs[] = {
 static const struct file_operations ctl_fops = {
        .owner = THIS_MODULE,
        .unlocked_ioctl = _ctl_ioctl,
-       .release = _ctl_release,
        .poll = _ctl_poll,
        .fasync = _ctl_fasync,
 #ifdef CONFIG_COMPAT