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
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:
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
3 matches
Mail list logo