[POWERPC] Replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc. Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
04d76b937b
commit
f8485350c2
@ -119,10 +119,9 @@ static int proc_viopath_show(struct seq_file *m, void *v)
|
||||
struct device_node *node;
|
||||
const char *sysid;
|
||||
|
||||
buf = kmalloc(HW_PAGE_SIZE, GFP_KERNEL);
|
||||
buf = kzalloc(HW_PAGE_SIZE, GFP_KERNEL);
|
||||
if (!buf)
|
||||
return 0;
|
||||
memset(buf, 0, HW_PAGE_SIZE);
|
||||
|
||||
handle = dma_map_single(iSeries_vio_dev, buf, HW_PAGE_SIZE,
|
||||
DMA_FROM_DEVICE);
|
||||
|
Reference in New Issue
Block a user