Avoided unused return value warning.

This commit is contained in:
Florian Pose 2014-04-25 17:05:39 +02:00
parent 1619586388
commit 8cf05b96c6
1 changed files with 4 additions and 1 deletions

View File

@ -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;