No driver implements ->ioctl() of struct snd_info_entry_ops.

Signed-off-by: Christian Brauner (Amutable) <[email protected]>
---
 include/sound/info.h |  2 --
 sound/core/info.c    | 13 -------------
 2 files changed, 15 deletions(-)

diff --git a/include/sound/info.h b/include/sound/info.h
index b4b5bdd6898d..f32e81ef0c8f 100644
--- a/include/sound/info.h
+++ b/include/sound/info.h
@@ -50,8 +50,6 @@ struct snd_info_entry_ops {
        __poll_t (*poll)(struct snd_info_entry *entry,
                             void *file_private_data, struct file *file,
                             poll_table *wait);
-       int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,
-                    struct file *file, unsigned int cmd, unsigned long arg);
        int (*mmap)(struct snd_info_entry *entry, void *file_private_data,
                    struct inode *inode, struct file *file,
                    struct vm_area_struct *vma);
diff --git a/sound/core/info.c b/sound/core/info.c
index 9665600ca5ac..639554bb17c8 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -201,18 +201,6 @@ static __poll_t snd_info_entry_poll(struct file *file, 
poll_table *wait)
        return mask;
 }
 
-static long snd_info_entry_ioctl(struct file *file, unsigned int cmd,
-                               unsigned long arg)
-{
-       struct snd_info_private_data *data = file->private_data;
-       struct snd_info_entry *entry = data->entry;
-
-       if (!entry->c.ops->ioctl)
-               return -ENOTTY;
-       return entry->c.ops->ioctl(entry, data->file_private_data,
-                                  file, cmd, arg);
-}
-
 static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma)
 {
        struct inode *inode = file_inode(file);
@@ -283,7 +271,6 @@ static const struct proc_ops snd_info_entry_operations =
        .proc_write_buf = snd_info_entry_write,
        .proc_write_size = PAGE_SIZE,
        .proc_poll      = snd_info_entry_poll,
-       .proc_ioctl     = snd_info_entry_ioctl,
        .proc_mmap      = snd_info_entry_mmap,
        .proc_open      = snd_info_entry_open,
        .proc_release   = snd_info_entry_release,

-- 
2.53.0


Reply via email to