mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
e718a3eb09
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes, in particular in the context in which this code is being used. So, replace code of the following form: sizeof(*fwk) + fwk->num_services * sizeof(fwk->svc_api_info[0]); with: struct_size(fwk, svc_api_info, fwk->num_services) and so on... Notice that variables bytes and len are unnecessary, hence they are removed. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
qdsp6 | ||
apq8016_sbc.c | ||
apq8096.c | ||
common.c | ||
common.h | ||
Kconfig | ||
lpass-apq8016.c | ||
lpass-cpu.c | ||
lpass-ipq806x.c | ||
lpass-lpaif-reg.h | ||
lpass-platform.c | ||
lpass.h | ||
Makefile | ||
sdm845.c | ||
storm.c |