mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 21:34:39 +00:00
Avoid a VLA[1] by using a real constant expression instead of a variable. The compiler should be able to optimize the original code and avoid using an actual VLA. Anyway this change is useful because it will avoid a false positive with -Wvla, it might also help the compiler generating better code. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Salvatore Mesoraca <[email protected]> Signed-off-by: David S. Miller <[email protected]>