Avoided unused return value warning.
This commit is contained in:
parent
1619586388
commit
8cf05b96c6
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue