driver:tpu:remove the limit on the number of bytes written

Signed-off-by: tingzhu.wang@sophgo.com <tingzhu.wang@sophgo.com>
This commit is contained in:
tingzhu.wang@sophgo.com 2024-10-30 17:02:27 +08:00 committed by xingxg2022
parent 0584a26b2b
commit 1af955ae5e
1 changed files with 0 additions and 5 deletions

View File

@ -1084,11 +1084,6 @@ static ssize_t sg_write(struct file *file, const char __user *buf, size_t count,
struct task_head *task_head = (struct task_head *)port->write_buf;
int i;
if (count > PAGE_SIZE) {
pr_err("Too many requests received\n");
return 0;
}
ret = copy_from_user(port->write_buf, buf, count);
if (ret) {
pr_err("%s failed\n", __func__);