Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

android: Remove error checking for debugfs_create_dir()

It is expected that most callers should _ignore_ the errors
return by debugfs_create_dir() in binder_init().

Signed-off-by: Wang Ming <machel@vivo.com>
Link: https://lore.kernel.org/r/20230713080649.1893-1-machel@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wang Ming and committed by
Greg Kroah-Hartman
51b080a4 1346e933

+9 -11
+9 -11
drivers/android/binder.c
··· 6557 6557 struct binder_device *device; 6558 6558 struct hlist_node *tmp; 6559 6559 char *device_names = NULL; 6560 + const struct binder_debugfs_entry *db_entry; 6560 6561 6561 6562 ret = binder_alloc_shrinker_init(); 6562 6563 if (ret) ··· 6567 6566 atomic_set(&binder_transaction_log_failed.cur, ~0U); 6568 6567 6569 6568 binder_debugfs_dir_entry_root = debugfs_create_dir("binder", NULL); 6570 - if (binder_debugfs_dir_entry_root) { 6571 - const struct binder_debugfs_entry *db_entry; 6572 6569 6573 - binder_for_each_debugfs_entry(db_entry) 6574 - debugfs_create_file(db_entry->name, 6575 - db_entry->mode, 6576 - binder_debugfs_dir_entry_root, 6577 - db_entry->data, 6578 - db_entry->fops); 6570 + binder_for_each_debugfs_entry(db_entry) 6571 + debugfs_create_file(db_entry->name, 6572 + db_entry->mode, 6573 + binder_debugfs_dir_entry_root, 6574 + db_entry->data, 6575 + db_entry->fops); 6579 6576 6580 - binder_debugfs_dir_entry_proc = debugfs_create_dir("proc", 6581 - binder_debugfs_dir_entry_root); 6582 - } 6577 + binder_debugfs_dir_entry_proc = debugfs_create_dir("proc", 6578 + binder_debugfs_dir_entry_root); 6583 6579 6584 6580 if (!IS_ENABLED(CONFIG_ANDROID_BINDERFS) && 6585 6581 strcmp(binder_devices_param, "") != 0) {