ppp: Remove redundant BUG_ON() check in ppp_pernet
authorXu Wang <vulab@iscas.ac.cn>
Tue, 24 Dec 2019 09:37:04 +0000 (09:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:30:52 +0000 (16:30 -0800)
commit8a3f44a0bb76c4e69dea3ad398ada41ae4ffc3ea
tree744ec5da59f3298bf25b46245e42ea4e92b81133
parent36a78867f80c4040fbfc5865f0ecd5ec55d688a7
ppp: Remove redundant BUG_ON() check in ppp_pernet

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

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c