[PATCH] phy: qcom: use struct_size instead of sizeof

Vinod Koul vkoul at kernel.org
Thu Dec 9 03:55:11 PST 2021


On 09-12-21, 11:21, Guo Zhengkui wrote:
> Use struct_size() to get the accurate size of `clk_hw_onecell_data`
> with a variable size array, instead of sizeof(data) to get the size
> of a pointer.

Applied, thanks

-- 
~Vinod



More information about the linux-phy mailing list