Re: [PATCH 1/3] lib: assoc_array: use struct_size() in kmalloc()

2019-05-18 Thread Gustavo A. R. Silva
On 5/17/19 2:26 AM, xiaolinkui wrote: > Use the new struct_size() helper to keep code simple. > This is not the reason why this helper was created. And if you are going to copy/paste changelog texts, at least try to understand and compile[1][2] the code before submitting it. -- Gustavo [1]

[PATCH 1/3] lib: assoc_array: use struct_size() in kmalloc()

2019-05-17 Thread xiaolinkui
Use the new struct_size() helper to keep code simple. Signed-off-by: xiaolinkui --- lib/assoc_array.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/assoc_array.c b/lib/assoc_array.c index edc3c14..0e69b5b 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c @@