OSDN Git Service

Staging: lustre: module: Replace function calls
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 6 Nov 2015 17:18:29 +0000 (22:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Replace the calls of function cfs_trace_free_string_buffer() with
kfree() as the former function is not required.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/module.c

index d781b41..96d9d46 100644 (file)
@@ -392,7 +392,7 @@ static int __proc_dobitmasks(void *data, int write,
        } else {
                rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob);
                if (rc < 0) {
-                       cfs_trace_free_string_buffer(tmpstr, tmpstrlen);
+                       kfree(tmpstr);
                        return rc;
                }
 
@@ -402,7 +402,7 @@ static int __proc_dobitmasks(void *data, int write,
                        *mask |= D_EMERG;
        }
 
-       cfs_trace_free_string_buffer(tmpstr, tmpstrlen);
+       kfree(tmpstr);
        return rc;
 }