]> err.no Git - linux-2.6/blobdiff - include/net/netlink.h
[IPV6]: Make fib6_init to return an error code.
[linux-2.6] / include / net / netlink.h
index 9298218c07f9afa7fda027fcbb07a8b4684b673f..db4b935b6c7e3b26ec746bf17c467b0ec872d042 100644 (file)
@@ -862,7 +862,7 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
 
 #define NLA_PUT(skb, attrtype, attrlen, data) \
        do { \
-               if (nla_put(skb, attrtype, attrlen, data) < 0) \
+               if (unlikely(nla_put(skb, attrtype, attrlen, data) < 0)) \
                        goto nla_put_failure; \
        } while(0)