Skip to content

Commit

Permalink
isdn: Remove unused get_Bprotocol4id()
Browse files Browse the repository at this point in the history
get_Bprotocol4id() was added in 2008 in
commit 1b2b03f ("Add mISDN core files")
but hasn't been used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
Dr. David Alan Gilbert authored and kuba-moo committed Dec 12, 2024
1 parent b82ca90 commit ae7837b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions drivers/isdn/mISDN/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion drivers/isdn/mISDN/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae7837b

Please sign in to comment.