Commit 02a896ca authored by Aditya Pakki's avatar Aditya Pakki Committed by David S. Miller
Browse files

pppoe: remove redundant BUG_ON() check in pppoe_pernet



Passing NULL to pppoe_pernet causes a crash via BUG_ON.
Dereferencing net in net_generici() also has the same effect. This patch
removes the redundant BUG_ON check on the same parameter.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5532946e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -119,8 +119,6 @@ static inline bool stage_session(__be16 sid)

static inline struct pppoe_net *pppoe_pernet(struct net *net)
{
	BUG_ON(!net);

	return net_generic(net, pppoe_net_id);
}