netlink: Improve returned error codes
authorThomas Graf <tgraf@suug.ch>
Tue, 3 Jun 2008 23:36:54 +0000 (16:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2008 23:36:54 +0000 (16:36 -0700)
Make nlmsg_trim(), nlmsg_cancel(), genlmsg_cancel(), and
nla_nest_cancel() void functions.

Return -EMSGSIZE instead of -1 if the provided message buffer is not
big enough.

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

No differences found