aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/kpc2000
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-12 14:46:15 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-20 07:40:39 +0200
commit690510aad15f2f8b205186eac9c705566478dff6 (patch)
tree5203342251859cd0f9bd1fd2eaa1921af07bbef5 /drivers/staging/kpc2000
parentstaging: vc04_services: bcm2835-camera: remove redundant assignment to variable ret (diff)
downloadlinux-dev-690510aad15f2f8b205186eac9c705566478dff6.tar.xz
linux-dev-690510aad15f2f8b205186eac9c705566478dff6.zip
staging: kpc2000: remove unused function kp2000_cdev_write
There is no callers in tree, so can be removed. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000')
-rw-r--r--drivers/staging/kpc2000/kpc2000/fileops.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/kpc2000/kpc2000/fileops.c b/drivers/staging/kpc2000/kpc2000/fileops.c
index b3b0b763fa1e..f8774d8f69b8 100644
--- a/drivers/staging/kpc2000/kpc2000/fileops.c
+++ b/drivers/staging/kpc2000/kpc2000/fileops.c
@@ -74,11 +74,6 @@ ssize_t kp2000_cdev_read(struct file *filp, char __user *buf, size_t count, lof
return count;
}
-ssize_t kp2000_cdev_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
-{
- return -EINVAL;
-}
-
long kp2000_cdev_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioctl_param)
{
struct kp2000_device *pcard = filp->private_data;
@@ -122,9 +117,6 @@ struct file_operations kp2000_fops = {
.open = kp2000_cdev_open,
.release = kp2000_cdev_close,
.read = kp2000_cdev_read,
- //.write = kp2000_cdev_write,
- //.poll = kp2000_cdev_poll,
- //.fasync = kp2000_cdev_fasync,
.llseek = noop_llseek,
.unlocked_ioctl = kp2000_cdev_ioctl,
};