Skip to content
Unverified Commit 120e1aa2 authored by Yeqi Fu's avatar Yeqi Fu Committed by Mark Brown
Browse files

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: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: default avatarYeqi Fu <asuk4.q@gmail.com>
Link: https://lore.kernel.org/r/20230518052515.368978-1-asuk4.q@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f2156989
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment