OSDN Git Service

RDMA/uverbs: Remove redundant check
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 24 Jun 2018 08:23:52 +0000 (11:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 26 Jun 2018 20:37:26 +0000 (14:37 -0600)
commitd9c44040ed05991bc43dddb7dbb043891b3bdb1f
tree8cd2f04c5048bef957bc68b61210952a4c840761
parent3a2e791c9456aab38a727b2b2558c08210f59f03
RDMA/uverbs: Remove redundant check

kern_spec->reserved is checked prior to calling
kern_spec_to_ib_spec_filter() which makes this second check redundant.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c