nfc: hci: Introduce nfc_llc_del_engine() to reduce code duplication
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 3 Feb 2024 07:51:03 +0000 (08:51 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Feb 2024 14:36:06 +0000 (15:36 +0100)
commitd6f4aac19ad44998c6b1cde0334ad76900136ca4
tree814979cc2d01eac5cf80a3781f21606635d13bf0
parent06e6bc1b7aafa309c38d9d6623e8be3846647207
nfc: hci: Introduce nfc_llc_del_engine() to reduce code duplication

Add a new helper to avoid code duplication between nfc_llc_exit() and
nfc_llc_unregister().

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/nfc/hci/llc.c