Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Steven Rostedt (VMware)
08b0c9b4 3d3d9c07

+1 -1
+1 -1
kernel/trace/trace.c
··· 6145 6145 ssize_t tracing_resize_ring_buffer(struct trace_array *tr, 6146 6146 unsigned long size, int cpu_id) 6147 6147 { 6148 - int ret = size; 6148 + int ret; 6149 6149 6150 6150 mutex_lock(&trace_types_lock); 6151 6151