mirror of https://gitee.com/openkylin/linux.git
tracing: Remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lkml.kernel.org/r/20210513115517.58178-1-colin.king@canonical.com Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
3d3d9c072e
commit
08b0c9b4b9
|
@ -6145,7 +6145,7 @@ static int __tracing_resize_ring_buffer(struct trace_array *tr,
|
||||||
ssize_t tracing_resize_ring_buffer(struct trace_array *tr,
|
ssize_t tracing_resize_ring_buffer(struct trace_array *tr,
|
||||||
unsigned long size, int cpu_id)
|
unsigned long size, int cpu_id)
|
||||||
{
|
{
|
||||||
int ret = size;
|
int ret;
|
||||||
|
|
||||||
mutex_lock(&trace_types_lock);
|
mutex_lock(&trace_types_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue