]> err.no Git - linux-2.6/commitdiff
[Bluetooth] Remove the redundant non-seekable llseek method
authorRobert P. J. Day <rpjday@mindspring.com>
Wed, 11 Jul 2007 07:07:07 +0000 (09:07 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Jul 2007 04:53:45 +0000 (06:53 +0200)
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>
drivers/bluetooth/hci_vhci.c

index b71a5ccc587f984d11707d6e557d0e77fccb1d92..0638730a4a19636b7e9db504959725ada6f29895 100644 (file)
@@ -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,