ipv6: coding style: comparison for inequality with NULL
[deliverable/linux.git] / net / ipv6 / ip6_offload.c
index 46d452a56d3e1ce9b1a0f9f8d8edfede3675bf21..e893cd18612fcdc9e8577f0e060ffd32b5659eea 100644 (file)
@@ -124,7 +124,7 @@ static struct sk_buff *ipv6_gso_segment(struct sk_buff *skb,
                        unfrag_ip6hlen = ip6_find_1stfragopt(skb, &prevhdr);
                        fptr = (struct frag_hdr *)((u8 *)ipv6h + unfrag_ip6hlen);
                        fptr->frag_off = htons(offset);
-                       if (skb->next != NULL)
+                       if (skb->next)
                                fptr->frag_off |= htons(IP6_MF);
                        offset += (ntohs(ipv6h->payload_len) -
                                   sizeof(struct frag_hdr));
This page took 0.037778 seconds and 5 git commands to generate.