Skip to content

Commit

Permalink
[Bluetooth] Remove the redundant non-seekable llseek method
Browse files Browse the repository at this point in the history
Remove the llseek method given that the open method already calls
nonseekable_open().

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Robert P. J. Day authored and Marcel Holtmann committed Jul 11, 2007
1 parent babf4d4 commit 924f0e4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 924f0e4

Please sign in to comment.