aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-selectmap.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-07-22 18:47:24 +0200
committerLeon Romanovsky <[email protected]>2023-07-24 14:43:12 +0300
commit24b1b5d85c1c1e1c0eb7b6d7b6986ecb6c80041d (patch)
treeb21d0c83e768dc5b9d5582b079d92cf2fda8b2cb /drivers/fpga/xilinx-selectmap.c
parent0b5eed06832c87275ee67f69a943d811b1fe066d (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