diff options
author | Yeqi Fu <asuk4.q@gmail.com> | 2023-05-18 07:25:15 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-18 12:26:36 +0200 |
commit | 120e1aa2f2e60b55f9d20c2fe1c6144739e00dc4 (patch) | |
tree | 868dd07981f5060116a697af324e23e7550d1321 /drivers/spi/spi-cadence.c | |
parent | spi: cdns: Add compatible for AMD Pensando Elba SoC (diff) | |
download | linux-120e1aa2f2e60b55f9d20c2fe1c6144739e00dc4.tar.xz linux-120e1aa2f2e60b55f9d20c2fe1c6144739e00dc4.zip |
spi: hisi-kunpeng: Fix error checking
The function debugfs_create_dir returns ERR_PTR if an error occurs,
and the appropriate way to verify for errors is to use the inline
function IS_ERR. The patch will substitute the null-comparison with
IS_ERR.
Suggested-by: Ivan Orlov <ivan.orlov0322@gmail.com
Signed-off-by: Yeqi Fu <asuk4.q@gmail.com
Link: https://lore.kernel.org/r/20230518052515.368978-1-asuk4.q@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org
Diffstat (limited to 'drivers/spi/spi-cadence.c')
0 files changed, 0 insertions, 0 deletions