commit | dd04eecc41ae7cf139593b400e74defad62cec54 | [log] [tgz] |
---|---|---|
author | Tomas Winkler <tomas.winkler@intel.com> | Mon Mar 20 15:04:05 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Apr 08 17:38:25 2017 +0200 |
tree | af56e3cbffa0576dc64948353753a61b6a62bd30 | |
parent | 3fcbab6c4a962259b8cb83aea813a4c7fbe11f77 [diff] |
mei: bus: elminate variable length arrays Though VLA are supported by CC99 there are many cavities and should be avoided. 'const size_t len = sizeof()' that we used may not be set at the compile time hence generating VLA code. This fixes also sparse warning warning: Variable length array is used type. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>