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:

committed by
Karthik Jayakumar

parent
ee84a3df79
commit
9716446091
@@ -179,14 +179,8 @@ static int cam_mem_mgr_create_debug_fs(void)
|
||||
/* Store parent inode for cleanup in caller */
|
||||
tbl.dentry = dbgfileptr;
|
||||
|
||||
dbgfileptr = debugfs_create_bool("alloc_profile_enable", 0644,
|
||||
debugfs_create_bool("alloc_profile_enable", 0644,
|
||||
tbl.dentry, &tbl.alloc_profile_enable);
|
||||
if (IS_ERR(dbgfileptr)) {
|
||||
if (PTR_ERR(dbgfileptr) == -ENODEV)
|
||||
CAM_WARN(CAM_MEM, "DebugFS not enabled in kernel!");
|
||||
else
|
||||
rc = PTR_ERR(dbgfileptr);
|
||||
}
|
||||
end:
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user