RAS: Fix return value from show_trace()
authorTony Luck <tony.luck@intel.com>
Tue, 18 Oct 2022 16:59:00 +0000 (09:59 -0700)
committerBorislav Petkov <bp@suse.de>
Mon, 31 Oct 2022 17:55:18 +0000 (18:55 +0100)
commit50865c14f34edbd03f8113147fac069b39f4e390
treed0d9239b0a39a40ac6afdfa95b9abbcb02674e26
parenta51cbd0d86d3fa9ecc6ddf186dd1cb66a4fefa87
RAS: Fix return value from show_trace()

Documentation/filesystems/seq_file.rst describes the possible return
values from a "show()" function used by single_open().

show_trace() returns the value of "trace_count". This could be
interpreted as "SEQ_SKIP", or just confuse the calling function.

Change to just return "0" to avoid confusing anyone reading this code
and possibly using as a template. Reading "daemon_active" was never
an intended use case.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221018165900.109029-1-tony.luck@intel.com
drivers/ras/debugfs.c