mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 03:09:38 +07:00
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>
This commit is contained in:
parent
80ff4ad4c6
commit
690510aad1
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user