Re: [PATCH -next] tpm: Use kzalloc for allocating only one thing

2021-01-04 Thread Jarkko Sakkinen
On Tue, Dec 29, 2020 at 08:23:49AM -0800, James Bottomley wrote: > On Tue, 2020-12-29 at 21:51 +0800, Zheng Yongjun wrote: > > Use kzalloc rather than kcalloc(1,...) > > > > The semantic patch that makes this change is as follows: > > (http://coccinelle.lip6.fr/) > > What's the reason for

Re: [PATCH -next] tpm: Use kzalloc for allocating only one thing

2020-12-29 Thread James Bottomley
On Tue, 2020-12-29 at 21:51 +0800, Zheng Yongjun wrote: > Use kzalloc rather than kcalloc(1,...) > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) What's the reason for wanting to do this transformation? > drivers/char/tpm/tpm1-cmd.c | 2 +- > 1 file

[PATCH -next] tpm: Use kzalloc for allocating only one thing

2020-12-29 Thread Zheng Yongjun
Use kzalloc rather than kcalloc(1,...) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ @@ - kcalloc(1, + kzalloc( ...) // Signed-off-by: Zheng Yongjun --- drivers/char/tpm/tpm1-cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)