diff options
author | Salvatore Mesoraca <s.mesoraca16@gmail.com> | 2018-03-11 22:12:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-12 11:14:06 -0400 |
commit | 678f4bda35483473ae7ad674ece4c7c43a000888 (patch) | |
tree | f10b13a12ad1ea7f4790a6fa3ec6a064d22c7208 /net/llc/llc_core.c | |
parent | c16b1a9ccf70630004f3700532313ca0bcf3e663 (diff) | |
download | linux-678f4bda35483473ae7ad674ece4c7c43a000888.tar.gz linux-678f4bda35483473ae7ad674ece4c7c43a000888.tar.bz2 linux-678f4bda35483473ae7ad674ece4c7c43a000888.zip |
net: llc: drop VLA in llc_sap_mcast()
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 <s.mesoraca16@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc/llc_core.c')
0 files changed, 0 insertions, 0 deletions