From 0498e6c5853a37b2d41e043fd566a752281f2185 Mon Sep 17 00:00:00 2001 From: behlendo Date: Tue, 4 Nov 2008 23:18:31 +0000 Subject: 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 --- include/sys/vmsystm.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/sys/vmsystm.h b/include/sys/vmsystm.h index f0688393c..e10a1dc54 100644 --- a/include/sys/vmsystm.h +++ b/include/sys/vmsystm.h @@ -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); -- cgit v1.2.3