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.

caif: Remove unused cfsrvl_getphyid

cfsrvl_getphyid() has been unused since 2011's commit
f36214408470 ("caif: Use RCU and lists in cfcnfg.c for managing caif link layers")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241007004456.149899-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
3fe3dbaf da5e06de

-7
-1
include/net/caif/cfsrvl.h
··· 40 40 struct dev_info *dev_info, 41 41 bool supports_flowctrl); 42 42 bool cfsrvl_ready(struct cfsrvl *service, int *err); 43 - u8 cfsrvl_getphyid(struct cflayer *layer); 44 43 45 44 static inline void cfsrvl_get(struct cflayer *layr) 46 45 {
-6
net/caif/cfsrvl.c
··· 183 183 return true; 184 184 } 185 185 186 - u8 cfsrvl_getphyid(struct cflayer *layer) 187 - { 188 - struct cfsrvl *servl = container_obj(layer); 189 - return servl->dev_info.id; 190 - } 191 - 192 186 bool cfsrvl_phyid_match(struct cflayer *layer, int phyid) 193 187 { 194 188 struct cfsrvl *servl = container_obj(layer);