diff options
author | Yeqi Fu <asuk4.q@gmail.com> | 2023-05-17 20:31:11 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-06-07 00:04:56 +0300 |
commit | bf5c04ddd378dbd62d41d9c5bd18cca03bee2946 (patch) | |
tree | 0bfd61c5997293b32dacb2fb3fd1d4970ca2affd /drivers/edac/fsl_ddr_edac.h | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) | |
download | linux-bf5c04ddd378dbd62d41d9c5bd18cca03bee2946.tar.xz |
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 <asuk4.q@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230517173111.365787-1-asuk4.q@gmail.com
Diffstat (limited to 'drivers/edac/fsl_ddr_edac.h')
0 files changed, 0 insertions, 0 deletions