pktcdvd: simplify the class_pktcdvd logic
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2023 16:47:24 +0000 (18:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Apr 2023 08:53:58 +0000 (10:53 +0200)
commit43ba3d4af7a73ae958207caada6af0612d67f08e
tree985c1b687af6ca54fea0312caee9691a60e3c6d9
parentf326ea63ecc683b3dc88d8ee4f598598d4ed3b39
pktcdvd: simplify the class_pktcdvd logic

There is no need to dynamically create and destroy the class_pktcdvd
structure, just make it static and remove the memory allocation logic
which simplifies and cleans up the logic a lot.

Cc: linux-block@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20230331164724.319703-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/pktcdvd.c