]> git.baikalelectronics.ru Git - kernel.git/commit
misc: tifm: Remove VLA
authorLaura Abbott <labbott@redhat.com>
Wed, 11 Apr 2018 01:04:12 +0000 (18:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 11:31:27 +0000 (13:31 +0200)
commitc39f7e0c3ef9f835a57b9fe2972c37d9177a5224
tree9978dedcb0100f8ae90f95f96479a8e8bf31d9b6
parent9225c6026c76b5af1b79f7bb7bed25fe96647471
misc: tifm: Remove VLA

There's an ongoing effort to remove VLAs[1] from the kernel to eventually
turn on -Wvla. The single VLA can either take a value of 2 or 4 so switch
to the upper bound.

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/tifm_7xx1.c