Commit 2bf1c45
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: Osama Muhammad <osmtendev@gmail.com
Suggested-by: Ivan Orlov <ivan.orlov0322@gmail.com
Link: https://lore.kernel.org/r/20230515172938.13338-1-osmtendev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org1 parent d67dada commit 2bf1c45
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5256 | 5256 | | |
5257 | 5257 | | |
5258 | 5258 | | |
5259 | | - | |
| 5259 | + | |
5260 | 5260 | | |
5261 | 5261 | | |
5262 | 5262 | | |
| |||
6178 | 6178 | | |
6179 | 6179 | | |
6180 | 6180 | | |
6181 | | - | |
| 6181 | + | |
6182 | 6182 | | |
6183 | 6183 | | |
6184 | 6184 | | |
| |||
0 commit comments