diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-24 19:43:30 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-10-28 14:58:27 +0300 |
commit | 69d1ed59999c1e9c823f78befd3fb8a22bdbff48 (patch) | |
tree | 8896c2fdba128f333649786afeed0b3ce6631795 /drivers/infiniband/sw/rxe/rxe_pool.h | |
parent | 50604757e7925161356746c181c1a5e11a2b0f4b (diff) | |
download | linux-69d1ed59999c1e9c823f78befd3fb8a22bdbff48.tar.xz |
RDMA/rxe: Save a few bytes from struct rxe_pool
'table_size' is never read, it can be removed.
In fact, the only place that uses something that could be 'table_size' is
'alloc_index()'. In this function, it is re-computed from 'min_index' and
'max_index'.
Link: https://lore.kernel.org/r/2c42065049bb2b99bededdc423a9babf4a98adee.1635093628.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_pool.h')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_pool.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_pool.h b/drivers/infiniband/sw/rxe/rxe_pool.h index 1feca1bffced..1ff2250edf6d 100644 --- a/drivers/infiniband/sw/rxe/rxe_pool.h +++ b/drivers/infiniband/sw/rxe/rxe_pool.h @@ -74,7 +74,6 @@ struct rxe_pool { struct { struct rb_root tree; unsigned long *table; - size_t table_size; u32 last; u32 max_index; u32 min_index; |