summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-01-31 15:55:33 -0600
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-01 13:09:42 -0500
commite9260f6257efa6a6293507696e875b6494ee3744 (patch)
treefd3c8e1fccdea221addcc7fd374b2b4e3b19554e /kernel
parent74403b6c50dd7a633d3f22f59f975d6081eae093 (diff)
downloadlinux-e9260f6257efa6a6293507696e875b6494ee3744.tar.bz2
tracing: Remove useless code in dynevent_arg_pair_add()
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_dynevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_dynevent.c b/kernel/trace/trace_dynevent.c
index f9cfcdc9d1f3..204275ec8d71 100644
--- a/kernel/trace/trace_dynevent.c
+++ b/kernel/trace/trace_dynevent.c
@@ -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;
}