msm: camera: common: Remove return from debugfs_create_bool

Remove return checks from debugfs_create_bool, as the API changed in
kernel 5.15+.

CRs-Fixed: 3048249
Change-Id: I2351776615a5fb17db1c54d285be2bf8e55443ab
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:
Karthik Jayakumar
2021-10-05 12:35:30 -07:00
committed by Karthik Jayakumar
parent ee84a3df79
commit 9716446091
7 changed files with 28 additions and 72 deletions

View File

@@ -1077,14 +1077,9 @@ static int cam_sync_create_debugfs(void)
/* Store parent inode for cleanup in caller */
sync_dev->dentry = dbgfileptr;
dbgfileptr = debugfs_create_bool("trigger_cb_without_switch", 0644,
debugfs_create_bool("trigger_cb_without_switch", 0644,
sync_dev->dentry, &trigger_cb_without_switch);
if (IS_ERR(dbgfileptr)) {
if (PTR_ERR(dbgfileptr) == -ENODEV)
CAM_WARN(CAM_SYNC, "DebugFS not enabled in kernel!");
else
rc = PTR_ERR(dbgfileptr);
}
end:
return rc;
}