From: Harald Welte Date: Wed, 10 Aug 2005 03:03:54 +0000 (-0700) Subject: [NETFILTER]: cleanup nfnetlink_check_attributes() X-Git-Tag: v2.6.14-rc1~1035^2~183 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a42827b71b87fc9816d2f58626e825b0eb500efe;p=pandora-kernel.git [NETFILTER]: cleanup nfnetlink_check_attributes() 1) memset return parameter 'cda' (nfattr pointer array) only on success 2) a message without attributes and just a 'struct nfgenmsg' is valid, don't return -EINVAL 3) use likely() and unlikely() where apropriate Signed-off-by: Harald Welte Signed-off-by: David S. Miller --- Reading git-diff-tree failed