net/l2tpv3: Remove redundant check in net_init_l2tpv3()
commitd949fe64b074af7adca1076556aaebbcfdf6932e
authorAlexChen <alex.chen@huawei.com>
Fri, 30 Oct 2020 02:46:55 +0000 (30 10:46 +0800)
committerJason Wang <jasowang@redhat.com>
Wed, 11 Nov 2020 08:53:01 +0000 (11 16:53 +0800)
tree99be52d374c300ebadb25c0d2bffcb3ee5af3bc4
parent7564bf7701f00214cdc8a678a9f7df765244def1
net/l2tpv3: Remove redundant check in net_init_l2tpv3()

The result has been checked to be NULL before, it cannot be NULL here,
so the check is redundant. Remove it.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: AlexChen <alex.chen@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/l2tpv3.c