diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-07-22 18:47:24 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-07-24 14:43:12 +0300 |
commit | 24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d (patch) | |
tree | b21d0c83e768dc5b9d5582b079d92cf2fda8b2cb /drivers/infiniband/hw/irdma/ctrl.c | |
parent | 0b5eed06832c87275ee67f69a943d811b1fe066d (diff) | |
download | linux-24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d.tar.gz linux-24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d.tar.bz2 linux-24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d.zip |
IB/hfi1: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure
with a flex array.
This is less verbose, more robust and more informative.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f4618a67d5ae0a30eb3f2b4558c8cc790feed79a.1690044376.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/irdma/ctrl.c')
0 files changed, 0 insertions, 0 deletions