aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-04-03 15:41:18 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-11 22:29:40 -0400
commit5d5d568975307877e9195f5305f4240e506a2807 (patch)
treeb58d5b1af9e77189357b95f5cb0dc635bba65285 /drivers/usb/gadget
parent86cc05840a0da1afcb6b8151b53f3b606457c91b (diff)
make new_sync_{read,write}() static
All places outside of core VFS that checked ->read and ->write for being NULL or called the methods directly are gone now, so NULL {read,write} with non-NULL {read,write}_iter will do the right thing in all cases. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/f_fs.c2
-rw-r--r--drivers/usb/gadget/legacy/inode.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
index a12315a78248..6bdb57069044 100644
--- a/drivers/usb/gadget/function/f_fs.c
+++ b/drivers/usb/gadget/function/f_fs.c
@@ -1061,8 +1061,6 @@ static const struct file_operations ffs_epfile_operations = {
1061 .llseek = no_llseek, 1061 .llseek = no_llseek,
1062 1062
1063 .open = ffs_epfile_open, 1063 .open = ffs_epfile_open,
1064 .write = new_sync_write,
1065 .read = new_sync_read,
1066 .write_iter = ffs_epfile_write_iter, 1064 .write_iter = ffs_epfile_write_iter,
1067 .read_iter = ffs_epfile_read_iter, 1065 .read_iter = ffs_epfile_read_iter,
1068 .release = ffs_epfile_release, 1066 .release = ffs_epfile_release,
diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c
index 662ef2c1c62b..6af58c6dba5e 100644
--- a/drivers/usb/gadget/legacy/inode.c
+++ b/drivers/usb/gadget/legacy/inode.c
@@ -699,8 +699,6 @@ static const struct file_operations ep_io_operations = {
699 .open = ep_open, 699 .open = ep_open,
700 .release = ep_release, 700 .release = ep_release,
701 .llseek = no_llseek, 701 .llseek = no_llseek,
702 .read = new_sync_read,
703 .write = new_sync_write,
704 .unlocked_ioctl = ep_ioctl, 702 .unlocked_ioctl = ep_ioctl,
705 .read_iter = ep_read_iter, 703 .read_iter = ep_read_iter,
706 .write_iter = ep_write_iter, 704 .write_iter = ep_write_iter,