Skip to content

Commit

Permalink
nfc: hci: Remove unused nfc_llc_unregister
Browse files Browse the repository at this point in the history
nfc_llc_unregister() has been unused since it was added in 2012's
commit 67cccfe ("NFC: Add an LLC Core layer to HCI")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250219020258.297995-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Dr. David Alan Gilbert authored and Jakub Kicinski committed Feb 20, 2025
1 parent 23dcacf commit 9a6c2b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions net/nfc/hci/llc.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ static struct nfc_llc_engine *nfc_llc_name_to_engine(const char *name)
return NULL;
}

void nfc_llc_unregister(const char *name)
{
struct nfc_llc_engine *llc_engine;

llc_engine = nfc_llc_name_to_engine(name);
if (llc_engine == NULL)
return;

nfc_llc_del_engine(llc_engine);
}

struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev,
xmit_to_drv_t xmit_to_drv,
rcv_to_hci_t rcv_to_hci, int tx_headroom,
Expand Down
1 change: 0 additions & 1 deletion net/nfc/hci/llc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ struct nfc_llc {
void *nfc_llc_get_data(struct nfc_llc *llc);

int nfc_llc_register(const char *name, const struct nfc_llc_ops *ops);
void nfc_llc_unregister(const char *name);

int nfc_llc_nop_register(void);

Expand Down

0 comments on commit 9a6c2b2

Please sign in to comment.