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

pppoe: remove unused return value from two methods.

The patch removes unused return value from __delete_item() and
delete_item() methods in drivers/net/ppp/pppoe.c.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rami Rosen and committed by
David S. Miller
3b12bb60 046f4aaf

+3 -9
+3 -9
drivers/net/ppp/pppoe.c
··· 201 201 return 0; 202 202 } 203 203 204 - static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid, 204 + static void __delete_item(struct pppoe_net *pn, __be16 sid, 205 205 char *addr, int ifindex) 206 206 { 207 207 int hash = hash_item(sid, addr); ··· 220 220 src = &ret->next; 221 221 ret = ret->next; 222 222 } 223 - 224 - return ret; 225 223 } 226 224 227 225 /********************************************************************** ··· 262 264 return pppox_sock; 263 265 } 264 266 265 - static inline struct pppox_sock *delete_item(struct pppoe_net *pn, __be16 sid, 267 + static inline void delete_item(struct pppoe_net *pn, __be16 sid, 266 268 char *addr, int ifindex) 267 269 { 268 - struct pppox_sock *ret; 269 - 270 270 write_lock_bh(&pn->hash_lock); 271 - ret = __delete_item(pn, sid, addr, ifindex); 271 + __delete_item(pn, sid, addr, ifindex); 272 272 write_unlock_bh(&pn->hash_lock); 273 - 274 - return ret; 275 273 } 276 274 277 275 /***************************************************************************