tracing: Remove useless code in dynevent_arg_pair_add()
authorTom Zanussi <zanussi@kernel.org>
Fri, 31 Jan 2020 21:55:33 +0000 (15:55 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 1 Feb 2020 18:09:42 +0000 (13:09 -0500)
The final addition to q is unnecessary, since q isn't ever used
afterwards.

Link: http://lkml.kernel.org/r/7880a1268217886cdba7035526650195668da856.1580506712.git.zanussi@kernel.org
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_dynevent.c

index f9cfcdc9d1f3666672292c8fe51605f35d39e880..204275ec8d7144058a48f007551626309b517184 100644 (file)
@@ -322,7 +322,7 @@ int dynevent_arg_pair_add(struct dynevent_cmd *cmd,
                pr_err("field string is too long: %s\n", arg_pair->rhs);
                return -E2BIG;
        }
-       cmd->remaining -= delta; q += delta;
+       cmd->remaining -= delta;
 
        return ret;
 }