projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0211cc1
)
wkup_m3_ipc.c: Fix error checking for debugfs_create_dir
author
Osama Muhammad
<osmtendev@gmail.com>
Wed, 17 May 2023 17:24:31 +0000
(22:24 +0500)
committer
Nishanth Menon
<nm@ti.com>
Tue, 6 Jun 2023 18:50:52 +0000
(13:50 -0500)
This patch fixes the error checking in wkup_m3_ipc.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>
Link:
https://lore.kernel.org/r/20230517172431.13507-1-osmtendev@gmail.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/wkup_m3_ipc.c
patch
|
blob
|
history
diff --git
a/drivers/soc/ti/wkup_m3_ipc.c
b/drivers/soc/ti/wkup_m3_ipc.c
index c9197912ec249dfe8acf65421725153f121b858e..3aff106fc11a00bcb79a39b0a9eec3944afa3dc4 100644
(file)
--- a/
drivers/soc/ti/wkup_m3_ipc.c
+++ b/
drivers/soc/ti/wkup_m3_ipc.c
@@
-202,7
+202,7
@@
static int wkup_m3_ipc_dbg_init(struct wkup_m3_ipc *m3_ipc)
{
m3_ipc->dbg_path = debugfs_create_dir("wkup_m3_ipc", NULL);
- if (
!m3_ipc->dbg_path
)
+ if (
IS_ERR(m3_ipc->dbg_path)
)
return -EINVAL;
(void)debugfs_create_file("enable_late_halt", 0644,