Skip to content

Commit

Permalink
agp: remove read/write stubs
Browse files Browse the repository at this point in the history
The VFS layer handles those in the very same way, if unset. No need for
additional stubs.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
minipli authored and airlied committed Aug 1, 2014
1 parent 1eac887 commit 08d645c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions drivers/char/agp/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,19 +710,6 @@ static int agp_open(struct inode *inode, struct file *file)
return 0;
}


static ssize_t agp_read(struct file *file, char __user *buf,
size_t count, loff_t * ppos)
{
return -EINVAL;
}

static ssize_t agp_write(struct file *file, const char __user *buf,
size_t count, loff_t * ppos)
{
return -EINVAL;
}

static int agpioc_info_wrap(struct agp_file_private *priv, void __user *arg)
{
struct agp_info userinfo;
Expand Down Expand Up @@ -1047,8 +1034,6 @@ static const struct file_operations agp_fops =
{
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = agp_read,
.write = agp_write,
.unlocked_ioctl = agp_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = compat_agp_ioctl,
Expand Down

0 comments on commit 08d645c

Please sign in to comment.