mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Removed useless check
Fix forward NULL in splat kmem_cache test ctors/dtors git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@171 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -72,9 +72,6 @@ copyinstr(const void *from, void *to, size_t len, size_t *done)
|
||||
if (len == 0)
|
||||
return -ENAMETOOLONG;
|
||||
|
||||
if (len < 0)
|
||||
return -EFAULT;
|
||||
|
||||
/* XXX: Should return ENAMETOOLONG if 'strlen(from) > len' */
|
||||
|
||||
memset(to, 0, len);
|
||||
|
||||
Reference in New Issue
Block a user