Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

isdn: Remove unused get_Bprotocol4id()

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>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
ae7837bb b82ca90d

-15
-14
drivers/isdn/mISDN/core.c
··· 294 294 return NULL; 295 295 } 296 296 297 - struct Bprotocol * 298 - get_Bprotocol4id(u_int id) 299 - { 300 - u_int m; 301 - 302 - if (id < ISDN_P_B_START || id > 63) { 303 - printk(KERN_WARNING "%s id not in range %d\n", 304 - __func__, id); 305 - return NULL; 306 - } 307 - m = 1 << (id & ISDN_P_B_MASK); 308 - return get_Bprotocol4mask(m); 309 - } 310 - 311 297 int 312 298 mISDN_register_Bprotocol(struct Bprotocol *bp) 313 299 {
-1
drivers/isdn/mISDN/core.h
··· 55 55 56 56 extern u_int get_all_Bprotocols(void); 57 57 struct Bprotocol *get_Bprotocol4mask(u_int); 58 - struct Bprotocol *get_Bprotocol4id(u_int); 59 58 60 59 extern int mISDN_inittimer(u_int *); 61 60 extern void mISDN_timer_cleanup(void);