]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/ip_options.c
[IPV4]: Get rid of redundant IPCB->opts initialisation
[karo-tx-linux.git] / net / ipv4 / ip_options.c
index cbcae6544622932cbb7f0a57d648338bd699ceb9..406056edc02ba94f529ad6befb2c0fb934c53099 100644 (file)
@@ -256,7 +256,6 @@ int ip_options_compile(struct ip_options * opt, struct sk_buff * skb)
 
        if (!opt) {
                opt = &(IPCB(skb)->opt);
-               memset(opt, 0, sizeof(struct ip_options));
                iph = skb->nh.raw;
                opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr);
                optptr = iph + sizeof(struct iphdr);