diff options
author | Yeqi Fu <[email protected]> | 2023-05-18 01:31:11 +0800 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-06-06 23:04:56 +0200 |
commit | bf5c04ddd378dbd62d41d9c5bd18cca03bee2946 (patch) | |
tree | 0bfd61c5997293b32dacb2fb3fd1d4970ca2affd /lib/mpi/mpiutil.c | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) |
EDAC/thunderx: Check debugfs file creation retval properly
edac_debugfs_create_file() returns ERR_PTR by way of the respective
debugfs function it calls, if an error occurs.
The appropriate way to verify for errors is to use IS_ERR(). Do so.
[ bp: Rewrite all text. ]
Signed-off-by: Yeqi Fu <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions