isdn: Remove unused get_Bprotocol4id()
Subsystems (2)
PATCH 1/1 isdn: Remove unused get_Bprotocol4id()
From: "Dr. David Alan Gilbert" <[email protected]>
get_Bprotocol4id() was added in 2008 in
commit 1b2b03f8e514 ("Add mISDN core files")
but hasn't been used.
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- drivers/isdn/mISDN/core.c | 14 -------------- drivers/isdn/mISDN/core.h | 1 - 2 files changed, 15 deletions(-)
drivers/isdn/mISDN/core.c +0 -14
@@ -294,20 +294,6 @@ get_Bprotocol4mask(u_int m)return NULL ; } -struct Bprotocol * -get_Bprotocol4id (u_int id) -{ -u_int m; - -if (id <ISDN_P_B_START || id >63 ) { -printk (KERN_WARNING "%s id not in range %d\n" , - __func__, id); -return NULL ; - } - m =1 << (id &ISDN_P_B_MASK ); -return get_Bprotocol4mask (m); -} -int mISDN_register_Bprotocol (struct Bprotocol *bp) {
drivers/isdn/mISDN/core.h +0 -1
@@ -55,7 +55,6 @@ extern void __add_layer2(struct mISDNchannel *, struct mISDNstack *);extern u_int get_all_Bprotocols (void );struct Bprotocol *get_Bprotocol4mask (u_int ); -struct Bprotocol *get_Bprotocol4id (u_int );extern int mISDN_inittimer (u_int *);extern void mISDN_timer_cleanup (void );
Signature · 1 line
2.47.1
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 11 Dec 2024 00:58:02 +0000 you wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
get_Bprotocol4id()was added in 2008 in
commit1b2b03f8e514("Add mISDN core files")
but hasn't been used.Remove it.
[...]
Here is the summary with links:
- [net-next] isdn: Remove unused get_Bprotocol4id()
https://git.kernel.org/netdev/net-next/c/ae7837bb3d9d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html