tracing: remove redundant initialization of variable ret
Subsystems (2)
PATCH 1/1 tracing: remove redundant initialization of variable ret
From: Colin Ian King <[email protected]>
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.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace.c +1 -1
@@ -6122,7 +6122,7 @@ static int __tracing_resize_ring_buffer(struct trace_array *tr,ssize_t tracing_resize_ring_buffer (struct trace_array *tr,unsigned long size,int cpu_id) { -int ret = size; +int ret;mutex_lock (&trace_types_lock);
Signature · 1 line
2.30.2