* [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister
@ 2025-02-19 2:02 linux
2025-02-19 4:53 ` Kalesh Anakkur Purayil
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: linux @ 2025-02-19 2:02 UTC (permalink / raw)
To: krzk, davem, edumazet, kuba, pabeni, horms
Cc: netdev, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
nfc_llc_unregister() has been unused since it was added in 2012's
commit 67cccfe17d1b ("NFC: Add an LLC Core layer to HCI")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
net/nfc/hci/llc.c | 11 -----------
net/nfc/hci/llc.h | 1 -
2 files changed, 12 deletions(-)
diff --git a/net/nfc/hci/llc.c b/net/nfc/hci/llc.c
index ba91284f4086..e6cf4eb06b46 100644
--- a/net/nfc/hci/llc.c
+++ b/net/nfc/hci/llc.c
@@ -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,
diff --git a/net/nfc/hci/llc.h b/net/nfc/hci/llc.h
index d66271d211a5..09914608ec43 100644
--- a/net/nfc/hci/llc.h
+++ b/net/nfc/hci/llc.h
@@ -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);
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister
2025-02-19 2:02 [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister linux
@ 2025-02-19 4:53 ` Kalesh Anakkur Purayil
2025-02-19 7:25 ` Krzysztof Kozlowski
2025-02-20 3:10 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Kalesh Anakkur Purayil @ 2025-02-19 4:53 UTC (permalink / raw)
To: linux; +Cc: krzk, davem, edumazet, kuba, pabeni, horms, netdev, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
On Wed, Feb 19, 2025 at 7:33 AM <linux@treblig.org> wrote:
>
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> nfc_llc_unregister() has been unused since it was added in 2012's
> commit 67cccfe17d1b ("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>
--
Regards,
Kalesh AP
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4239 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister
2025-02-19 2:02 [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister linux
2025-02-19 4:53 ` Kalesh Anakkur Purayil
@ 2025-02-19 7:25 ` Krzysztof Kozlowski
2025-02-20 3:10 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-19 7:25 UTC (permalink / raw)
To: linux, davem, edumazet, kuba, pabeni, horms; +Cc: netdev, linux-kernel
On 19/02/2025 03:02, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> nfc_llc_unregister() has been unused since it was added in 2012's
> commit 67cccfe17d1b ("NFC: Add an LLC Core layer to HCI")
... and it is basically part of nfc_llc_exit() already, so no need to
call it.
I would like to see that you actually investigated that this cleanup
should not be called, instead of just blindly removing code.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister
2025-02-19 2:02 [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister linux
2025-02-19 4:53 ` Kalesh Anakkur Purayil
2025-02-19 7:25 ` Krzysztof Kozlowski
@ 2025-02-20 3:10 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-02-20 3:10 UTC (permalink / raw)
To: Dr. David Alan Gilbert
Cc: krzk, davem, edumazet, kuba, pabeni, horms, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 19 Feb 2025 02:02:58 +0000 you wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> nfc_llc_unregister() has been unused since it was added in 2012's
> commit 67cccfe17d1b ("NFC: Add an LLC Core layer to HCI")
>
> Remove it.
>
> [...]
Here is the summary with links:
- [net-next] nfc: hci: Remove unused nfc_llc_unregister
https://git.kernel.org/netdev/net-next/c/9a6c2b2bdd5e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-20 3:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19 2:02 [PATCH net-next] nfc: hci: Remove unused nfc_llc_unregister linux
2025-02-19 4:53 ` Kalesh Anakkur Purayil
2025-02-19 7:25 ` Krzysztof Kozlowski
2025-02-20 3:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).