]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: nfnetlink: kill nlattr_bad_size
authorPatrick McHardy <kaber@trash.net>
Fri, 28 Sep 2007 21:40:56 +0000 (14:40 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:53:35 +0000 (16:53 -0700)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nfnetlink.h

index cd8fded3655010d6ee13db8328b1665ad7ece642..0d8424f76899f11d5c96dce8d525c1f54fbe4b1a 100644 (file)
@@ -73,19 +73,6 @@ struct nfnetlink_subsystem
 extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
 extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n);
 
-#define nlattr_bad_size(tb, max, cta_min)                              \
-({     int __i, __res = 0;                                             \
-       for (__i=1; __i <= max; __i++) {                                        \
-               if (!cta_min[__i])                                      \
-                       continue;                                       \
-               if (tb[__i] && nla_len(tb[__i]) < cta_min[__i]){        \
-                       __res = 1;                                      \
-                       break;                                          \
-               }                                                       \
-       }                                                               \
-       __res;                                                          \
-})
-
 extern int nfnetlink_has_listeners(unsigned int group);
 extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, 
                          int echo);