提交 e9260f62 编写于 作者: T Tom Zanussi 提交者: Steven Rostedt (VMware)

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.orgReviewed-by: NMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: NTom Zanussi <zanussi@kernel.org>
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 74403b6c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册