]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: use flexible-array member instead of zero-length array
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 2 Mar 2020 16:22:36 +0000 (16:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 06:55:02 +0000 (07:55 +0100)
commit99323f85617bb45ad094871452bce147edb0a962
treeddfe8ed7b48a5f60bbd12c5f33690cf516922097
parentba3f9ba50e5731ea5b0d9287b5ee85c9fb0bbbba
staging: wilc1000: use flexible-array member instead of zero-length array

Use flexible-array member introduced in C99 instead of zero-length
array. Most of zero-length array was already taken care in previous
patch [1]. Now modified few more cases which were not handled earlier.

[1]. https://patchwork.kernel.org/patch/11394197/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200302162226.4196-4-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/spi.c