Staging: lustre: module: Replace function calls

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>
This commit is contained in:
Shivani Bhardwaj 2015-11-06 22:48:29 +05:30 committed by Greg Kroah-Hartman
parent c6ef5b91f3
commit e4ce7f7779

View 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;
}