driver core: class: remove boilerplate code
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 20 Oct 2023 16:00:42 +0000 (18:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 21:17:11 +0000 (23:17 +0200)
commit28f2d57d88a71353eb1f1952d1ac4a7816612087
tree3aa056e8b5be060d3ea2c7c9928a922334f25706
parent36b2d7dd5a8ac95c8c1e69bdc93c4a6e2dc28a23
driver core: class: remove boilerplate code

Jump to err_out to avoid duplicating the code.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Link: https://lore.kernel.org/r/20231020160042.759439-1-mlombard@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/class.c