mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
driver core: class: remove dev_kobj from struct class
The dev_kobj field in struct class is now only written to, but never read from, so it can be removed as it is useless. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230331093318.82288-5-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -899,7 +899,6 @@ static int __init genhd_device_init(void)
|
||||
{
|
||||
int error;
|
||||
|
||||
block_class.dev_kobj = sysfs_dev_block_kobj;
|
||||
error = class_register(&block_class);
|
||||
if (unlikely(error))
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user