Tonghao Zhang ed744d8193 net: sock: remove the unnecessary check in proto_register
tw_prot_cleanup will check the twsk_prot.

Fixes: 0f5907af3913 ("net: Fix potential memory leak in proto_register()")
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-23 13:10:03 -07:00
..
2021-01-28 16:57:19 -08:00
2021-03-26 20:41:52 -07:00
2020-04-20 12:43:24 -07:00
2020-03-29 22:30:57 -07:00
2021-04-20 16:08:02 -07:00
2021-04-16 11:41:07 -07:00
2021-04-20 16:08:02 -07:00
2020-06-18 20:46:23 -07:00