RDMA/netlink: Simplify the put_msg and put_attr
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 18 Jun 2017 13:38:04 +0000 (16:38 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 10 Aug 2017 10:19:01 +0000 (13:19 +0300)
commit1a1c116f3dcf1658ee1e395bd13a556187d547f2
tree99a6e5f377899fed7f040660a232eb1dcdf23202
parente3a2b93dddad315f01a4b67faee738954c084072
RDMA/netlink: Simplify the put_msg and put_attr

Reuse standard macros to cancel the netlink message
in case of error.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
drivers/infiniband/core/netlink.c