Re: [PATCH 2/2] powerpc/pseries: Remove VLA from lparcfg_write()

2018-09-16 Thread Joel Stanley
On Wed, 5 Sep 2018 at 11:40, Suraj Jitindar Singh wrote: > > In lparcfg_write we hard code kbuf_sz and then use this as the variable > length of kbuf creating a variable length array. Since we're hard coding > the length anyway just define the array using this as the length and > remove the need

[PATCH 2/2] powerpc/pseries: Remove VLA from lparcfg_write()

2018-09-04 Thread Suraj Jitindar Singh
In lparcfg_write we hard code kbuf_sz and then use this as the variable length of kbuf creating a variable length array. Since we're hard coding the length anyway just define the array using this as the length and remove the need for kbuf_sz, thus removing the variable length array.