]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3bc51ef9d2cbb74e0c54a879d94d0d6b7a5dd29
tree8896c2fdba128f333649786afeed0b3ce6631795
parenta0fa2da8f527e948d724313a6185b34f14583526
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