]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM] netlink: Enhance indexing of the attribute array
authorThomas Graf <tgraf@suug.ch>
Wed, 22 Aug 2007 20:59:43 +0000 (13:59 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:23 +0000 (16:48 -0700)
commitd85115cb346bc856f7b4db015f622bf6b44a2293
treef4f0dd583f2934da4bb4b1621dfebb03c9d6a5ba
parent38048e58835d302b2ab2c75947bca731c705db8e
[XFRM] netlink: Enhance indexing of the attribute array

nlmsg_parse() puts attributes at array[type] so the indexing
method can be simpilfied by removing the obscuring "- 1".

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c