diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-06-15 17:02:45 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-08-01 16:43:51 -0400 |
commit | 08d645c181e9b9482c249e82a061c279a986db15 (patch) | |
tree | 2a87ad10fbad8dd702d97c572638e227fb587f7c /drivers/char | |
parent | 1eac887772928a61808339f51166be7f8b23babd (diff) |
agp: remove read/write stubs
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/agp/frontend.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c index b29703324e94..09f17eb73486 100644 --- a/drivers/char/agp/frontend.c +++ b/drivers/char/agp/frontend.c | |||
@@ -710,19 +710,6 @@ static int agp_open(struct inode *inode, struct file *file) | |||
710 | return 0; | 710 | return 0; |
711 | } | 711 | } |
712 | 712 | ||
713 | |||
714 | static ssize_t agp_read(struct file *file, char __user *buf, | ||
715 | size_t count, loff_t * ppos) | ||
716 | { | ||
717 | return -EINVAL; | ||
718 | } | ||
719 | |||
720 | static ssize_t agp_write(struct file *file, const char __user *buf, | ||
721 | size_t count, loff_t * ppos) | ||
722 | { | ||
723 | return -EINVAL; | ||
724 | } | ||
725 | |||
726 | static int agpioc_info_wrap(struct agp_file_private *priv, void __user *arg) | 713 | static int agpioc_info_wrap(struct agp_file_private *priv, void __user *arg) |
727 | { | 714 | { |
728 | struct agp_info userinfo; | 715 | struct agp_info userinfo; |
@@ -1047,8 +1034,6 @@ static const struct file_operations agp_fops = | |||
1047 | { | 1034 | { |
1048 | .owner = THIS_MODULE, | 1035 | .owner = THIS_MODULE, |
1049 | .llseek = no_llseek, | 1036 | .llseek = no_llseek, |
1050 | .read = agp_read, | ||
1051 | .write = agp_write, | ||
1052 | .unlocked_ioctl = agp_ioctl, | 1037 | .unlocked_ioctl = agp_ioctl, |
1053 | #ifdef CONFIG_COMPAT | 1038 | #ifdef CONFIG_COMPAT |
1054 | .compat_ioctl = compat_agp_ioctl, | 1039 | .compat_ioctl = compat_agp_ioctl, |