diff options
author | 2024-12-19 15:12:01 -0500 | |
---|---|---|
committer | 2024-12-26 10:38:36 -0500 | |
commit | cad1d5bd2cb9921189749b5d796026c768f56236 (patch) | |
tree | ecfd95aff79968473f0209fdc58f615053cbc2c3 /scripts/lib/kdoc/kdoc_output.py | |
parent | tracing: Return -EINVAL if a boot tracer tries to enable the mmiotracer at boot (diff) | |
download | wireguard-linux-cad1d5bd2cb9921189749b5d796026c768f56236.tar.xz wireguard-linux-cad1d5bd2cb9921189749b5d796026c768f56236.zip |
tracing: Have event_enable_write() just return error on error
The event_enable_write() function is inconsistent in how it returns
errors. Sometimes it updates the ppos parameter and sometimes it doesn't.
Simplify the code to just return an error or the count if there isn't an
error.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241219201345.025284170@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions