]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/xfrm4_policy.c
Merge branches 'acpi-dock', 'acpi-ec' and 'acpi-scan'
[karo-tx-linux.git] / net / ipv4 / xfrm4_policy.c
index 6156f68a1e90b53f7504a1e6f729b60c29d52b3a..bff69746e05f05d936ec8f7a62c34d3f87a55d10 100644 (file)
@@ -232,7 +232,6 @@ static void xfrm4_dst_ifdown(struct dst_entry *dst, struct net_device *dev,
 
 static struct dst_ops xfrm4_dst_ops = {
        .family =               AF_INET,
-       .protocol =             cpu_to_be16(ETH_P_IP),
        .gc =                   xfrm4_garbage_collect,
        .update_pmtu =          xfrm4_update_pmtu,
        .redirect =             xfrm4_redirect,
@@ -299,7 +298,7 @@ static void __net_exit xfrm4_net_exit(struct net *net)
 {
        struct ctl_table *table;
 
-       if (net->ipv4.xfrm4_hdr == NULL)
+       if (!net->ipv4.xfrm4_hdr)
                return;
 
        table = net->ipv4.xfrm4_hdr->ctl_table_arg;