mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +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> |
||
---|---|---|
.. | ||
Makefile | ||
q6adm.c | ||
q6adm.h | ||
q6afe-dai.c | ||
q6afe.c | ||
q6afe.h | ||
q6asm-dai.c | ||
q6asm.c | ||
q6asm.h | ||
q6core.c | ||
q6core.h | ||
q6dsp-common.c | ||
q6dsp-common.h | ||
q6dsp-errno.h | ||
q6routing.c | ||
q6routing.h |