From: Pablo Neira Ayuso Date: Tue, 2 Jun 2009 18:03:33 +0000 (+0200) Subject: netfilter: nfnetlink: cleanup for nfnetlink_rcv_msg() function X-Git-Tag: v2.6.31-rc1~330^2~32^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49c857ff20a660850bf8014716d0df6175e1883;p=pandora-kernel.git netfilter: nfnetlink: cleanup for nfnetlink_rcv_msg() function This patch cleans up the message handling path in two aspects: * it uses NLMSG_LENGTH() instead of NLMSG_SPACE() like rtnetlink does in this case to check if there is enough room for the Netlink/nfnetlink headers. No need to check for the padding room. * it removes a redundant header size checking that has been already do at the beginning of the function. Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed