diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-31 11:33:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-31 17:45:11 +0200 |
commit | e78195d52981fc634a4e1e66610a316088bd7458 (patch) | |
tree | c6d53488401dafb57d067a937b338a7ee464b3c2 /block/genhd.c | |
parent | driver core: clean up the logic to determine which /sys/dev/ directory to use (diff) | |
download | linux-e78195d52981fc634a4e1e66610a316088bd7458.tar.xz linux-e78195d52981fc634a4e1e66610a316088bd7458.zip |
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>
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index e1e1230b1b9f..af7208a37c53 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -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; |