Skip to content
Unverified Commit 2bf1c45b authored by Osama Muhammad's avatar Osama Muhammad Committed by Mark Brown
Browse files

regulator: Fix error checking for debugfs_create_dir



This patch fixes the error checking in core.c in debugfs_create_dir.
The correct way to check if an error occurred is 'IS_ERR' inline function.

Signed-off-by: default avatarOsama Muhammad <osmtendev@gmail.com>
Suggested-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230515172938.13338-1-osmtendev@gmail.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d67dada3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment