[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)
commitfab448991df4ecca6c244e23982c70f7e715b864
treef4f0dd583f2934da4bb4b1621dfebb03c9d6a5ba
parentcf5cb79f6946063b04be3df16dcaa781e48bdbef
[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