Skip to content
Commit e1d9ec3a authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Moritz Fischer
Browse files

fpga: dfl: Use struct_size() in kzalloc()



Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes. Also, remove unnecessary
function dfl_feature_platform_data_size().

This code was detected with the help of Coccinelle and, audited and
fixed manually.

Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
parent 23f872b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment