libtracefs: Reset errno to success on EAGAIN for the flush functions

The functions tracefs_cpu_flush() and tracefs_cpu_flush_write() both
usually end with errno = EAGAIN. This should not be passed to the calling
function, so reset it to 0.

Link: https://lore.kernel.org/linux-trace-devel/20221114222024.2435776-3-rostedt@goodmis.org

Fixes: 26b8893efda7c ("libtracefs: Add reading of per cpu files")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed