IB/core: Avoid duplicate code
authorEli Cohen <eli@mellanox.com>
Sun, 14 Feb 2016 15:07:47 +0000 (17:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Mar 2016 15:18:44 +0000 (10:18 -0500)
commit74a0b0a5ea6b48f8945e6e900e9c678866aa7520
tree1b2d57212e6fb54b13d9f42bc372704849a2cf05
parentbbdfcf18c3b54818d21bf67a3c31779a090887a0
IB/core: Avoid duplicate code

Move the check on the validity of the command to a common area.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c