Skip to content
Commit 8145dce8 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Vinod Koul
Browse files

dmaengine: stm32-mdma: Use struct_size() in kzalloc()



Make use of the new struct_size() helper instead of the offsetof() idiom.

Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20201008141828.GA20325@embeddedor


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d98793b5
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