mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-23 18:43:51 +08:00
Avoided unused return value warning.
This commit is contained in:
@@ -165,7 +165,10 @@ static ssize_t ccat_update_write(struct file *const f, const char __user * buf,
|
||||
if (*off + len > sizeof(update->data))
|
||||
return 0;
|
||||
|
||||
copy_from_user(update->data + *off, buf, len);
|
||||
if (copy_from_user(update->data + *off, buf, len)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
*off += len;
|
||||
update->size = *off;
|
||||
return len;
|
||||
|
||||
Reference in New Issue
Block a user