ipsec: remove the redundant code