aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorYeqi Fu <[email protected]>2023-05-18 13:25:15 +0800
committerMark Brown <[email protected]>2023-05-18 19:26:36 +0900
commit120e1aa2f2e60b55f9d20c2fe1c6144739e00dc4 (patch)
tree868dd07981f5060116a697af324e23e7550d1321 /scripts/generate_rust_analyzer.py
parentf2156989bf3014c67707d73ccd202b2ada09080b (diff)
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 <[email protected] Signed-off-by: Yeqi Fu <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions