OSDN Git Service

RDMA/rxe: Save a few bytes from struct rxe_pool
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 24 Oct 2021 16:43:30 +0000 (18:43 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Oct 2021 11:58:27 +0000 (08:58 -0300)
commit69d1ed59999c1e9c823f78befd3fb8a22bdbff48
tree8896c2fdba128f333649786afeed0b3ce6631795
parent50604757e7925161356746c181c1a5e11a2b0f4b
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>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h