kernel: tidy-up code

Signed-off-by: Faris <rissu.ntk@gmail.com>
This commit is contained in:
Faris
2025-11-02 00:43:48 +07:00
committed by ShirkNeko
parent b3fab49730
commit 7f2c838145
3 changed files with 77 additions and 96 deletions

View File

@@ -438,9 +438,9 @@ void escape_to_root_for_cmd_su(uid_t target_uid, pid_t target_pid)
}
#endif
#ifdef CONFIG_EXT4_FS
void nuke_ext4_sysfs(void)
{
#ifdef CONFIG_EXT4_FS
struct path path;
int err = kern_path("/data/adb/modules", 0, &path);
if (err) {
@@ -458,12 +458,8 @@ void nuke_ext4_sysfs(void)
ext4_unregister_sysfs(sb);
path_put(&path);
}
#else
inline void nuke_ext4_sysfs(void)
{
}
#endif
}
static bool is_system_bin_su()
{