Messages in this thread | | | Date | Sat, 18 Sep 2021 09:29:20 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH V2] staging: r8188eu: Use kzalloc() instead of kmalloc()+memset() |
| |
On Sat, Sep 18, 2021 at 03:51:41AM +0000, cgel.zte@gmail.com wrote: > From: Changcheng Deng <deng.changcheng@zte.com.cn> > > This place can use kzalloc() directly instead of calling kmalloc() then > memset(). Replace them. > At the same time,error code that is "ret = -ENOMEM;" should be added > here. > > Reported-by: Zeal Robot <zealci@zte.com.cn> > Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn> > ---
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
regards, dan carpenter
| |