OSDN Git Service

IB/rxe: Make function rxe_pool_cleanup return void
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 6 Dec 2018 11:04:38 +0000 (13:04 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Dec 2018 04:16:49 +0000 (21:16 -0700)
Since the function always returns 0 make it void.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h

index 36b53fb..a04a076 100644 (file)
@@ -241,7 +241,7 @@ static void rxe_pool_put(struct rxe_pool *pool)
        kref_put(&pool->ref_cnt, rxe_pool_release);
 }
 
-int rxe_pool_cleanup(struct rxe_pool *pool)
+void rxe_pool_cleanup(struct rxe_pool *pool)
 {
        unsigned long flags;
 
@@ -253,8 +253,6 @@ int rxe_pool_cleanup(struct rxe_pool *pool)
        write_unlock_irqrestore(&pool->pool_lock, flags);
 
        rxe_pool_put(pool);
-
-       return 0;
 }
 
 static u32 alloc_index(struct rxe_pool *pool)
index aa4ba30..72968c2 100644 (file)
@@ -126,7 +126,7 @@ int rxe_pool_init(struct rxe_dev *rxe, struct rxe_pool *pool,
                  enum rxe_elem_type type, u32 max_elem);
 
 /* free resources from object pool */
-int rxe_pool_cleanup(struct rxe_pool *pool);
+void rxe_pool_cleanup(struct rxe_pool *pool);
 
 /* allocate an object from pool */
 void *rxe_alloc(struct rxe_pool *pool);