Re: [PATCH V2 02/13] net: smc911x: Replace malloc()+memset() with calloc()

2020-03-25 Thread Marek Vasut
On 3/22/20 6:38 PM, Masahiro Yamada wrote: > On Sun, Mar 22, 2020 at 2:06 AM Marek Vasut wrote: >> >> Replace combination of malloc()+memset() with calloc() as the behavior > > calloc() -> kzalloc() > > to sync with the actual code. > > Please fix the subject as well. I'm switching this back

Re: [PATCH V2 02/13] net: smc911x: Replace malloc()+memset() with calloc()

2020-03-22 Thread Masahiro Yamada
On Sun, Mar 22, 2020 at 2:06 AM Marek Vasut wrote: > > Replace combination of malloc()+memset() with calloc() as the behavior calloc() -> kzalloc() to sync with the actual code. Please fix the subject as well. > is exactly the same and the amount of code is reduced. > > Signed-off-by:

[PATCH V2 02/13] net: smc911x: Replace malloc()+memset() with calloc()

2020-03-21 Thread Marek Vasut
Replace combination of malloc()+memset() with calloc() as the behavior is exactly the same and the amount of code is reduced. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Masahiro Yamada --- V2: - Use kzalloc() - Return -ENOMEM on alloc fail --- drivers/net/smc911x.c | 8 +++- 1