]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/umem: Don't check for a negative return value of dma_map_sg_attrs()
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 24 Jun 2018 08:23:48 +0000 (11:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 26 Jun 2018 20:37:26 +0000 (14:37 -0600)
commit9acb527d0d8937d1491c2985399ba2c794c6a27b
tree5b6141c4d92fdd7eed186c95cfb611b06f88a055
parent1f5e5749c7fd2ec6162f5a03388c1be9ac19d2d2
RDMA/umem: Don't check for a negative return value of dma_map_sg_attrs()

dma_map_sg_attrs() returns 0 on error and can't return a negative number
(ensured by BUG_ON), so don't check.

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