提交 924f0e4a 编写于 作者: R Robert P. J. Day 提交者: Marcel Holtmann

[Bluetooth] Remove the redundant non-seekable llseek method

Remove the llseek method given that the open method already calls
nonseekable_open().
Signed-off-by: NRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 babf4d42
......@@ -180,11 +180,6 @@ static inline ssize_t vhci_put_user(struct vhci_data *data,
return total;
}
static loff_t vhci_llseek(struct file *file, loff_t offset, int origin)
{
return -ESPIPE;
}
static ssize_t vhci_read(struct file *file,
char __user *buf, size_t count, loff_t *pos)
{
......@@ -334,7 +329,6 @@ static int vhci_fasync(int fd, struct file *file, int on)
static const struct file_operations vhci_fops = {
.owner = THIS_MODULE,
.llseek = vhci_llseek,
.read = vhci_read,
.write = vhci_write,
.poll = vhci_poll,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册