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:
parent
c6ef5b91f3
commit
e4ce7f7779
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user