Whamcloud - gitweb
LU-14428 libcfs: discard cfs_trace_allocate_string_buffer
[fs/lustre-release.git] / libcfs / libcfs / tracefile.c
index 36a16fa..060f87b 100644 (file)
@@ -898,18 +898,6 @@ int cfs_trace_copyout_string(char __user *usr_buffer, int usr_buffer_nob,
 }
 EXPORT_SYMBOL(cfs_trace_copyout_string);
 
-int cfs_trace_allocate_string_buffer(char **str, int nob)
-{
-       if (nob > 2 * PAGE_SIZE)        /* string must be "sensible" */
-                return -EINVAL;
-
-       *str = kmalloc(nob, GFP_KERNEL | __GFP_ZERO);
-        if (*str == NULL)
-                return -ENOMEM;
-
-        return 0;
-}
-
 int cfs_trace_dump_debug_buffer_usrstr(void __user *usr_str, int usr_str_nob)
 {
        char *str;