]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
isdn: Remove unused get_Bprotocol4id()
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 11 Dec 2024 00:58:02 +0000 (00:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Dec 2024 04:12:27 +0000 (20:12 -0800)
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 <linux@treblig.org>
Link: https://patch.msgid.link/20241211005802.258279-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/isdn/mISDN/core.c
drivers/isdn/mISDN/core.h

index e34a7a46754e805a06284afc20d35566c0f53bdc..8ec2d4d4f1352f18124654de68b91acb49ef0e51 100644 (file)
@@ -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)
 {
index 42599f49c189df0990e47dc043416d48cc1cab67..5617c06de8e4da92841ff96dd6809a454e63fb6f 100644 (file)
@@ -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);