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)
commit46ee73ee249b267990fa8c0c03a9bd62ea1df820
tree99a6e5f377899fed7f040660a232eb1dcdf23202
parentd53fa3e3a4fecd95015db915de7fea7f6ef6a83a
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