IB/core: A small refactor in destroy WQ handler
authorMatan Barak <matanb@mellanox.com>
Tue, 18 Apr 2017 09:03:40 +0000 (12:03 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Apr 2017 15:44:07 +0000 (11:44 -0400)
commitc52d8114d1a58f6fe4bfb9af39d262dd8f21e50e
tree802c0d4035592f9149b969936a0499d0af8f9f7f
parentd9edfc5a4f81165e64d4ad6e423a8554c88dd0de
IB/core: A small refactor in destroy WQ handler

Instead of having uverbs_uobject_put both in the error flow and the
good flow, we unite them.

Fixes: fd3c7904db6e ('IB/core: Change idr objects to use the new schema')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c