Re: [PATCH] power: supply: da9150-fg: remove VLA usage

2018-03-09 Thread Gustavo A. R. Silva
On 03/09/2018 05:36 AM, Adam Thomson wrote: On 09 March 2018 04:58, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA usage and replace it with fixed-length arrays. It seems that the length of array 'buf' will not exceed DA9150_QIF_SHORT_SIZE bytes (2 bytes). But a fixe

RE: [PATCH] power: supply: da9150-fg: remove VLA usage

2018-03-09 Thread Adam Thomson
On 09 March 2018 04:58, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > It seems that the length of array 'buf' will not exceed > DA9150_QIF_SHORT_SIZE bytes (2 bytes). But a fixed length > of DA9150_QIF_BYTE_SIZE byte