diff options
author | Christophe JAILLET <[email protected]> | 2023-07-22 18:47:24 +0200 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2023-07-24 14:43:12 +0300 |
commit | 24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d (patch) | |
tree | b21d0c83e768dc5b9d5582b079d92cf2fda8b2cb /drivers/fpga/xilinx-selectmap.c | |
parent | 0b5eed06832c87275ee67f69a943d811b1fe066d (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/f4618a67d5ae0a30eb3f2b4558c8cc790feed79a.1690044376.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions