summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/qe_lib/ucc_fast.c
diff options
context:
space:
mode:
authorYan Burman <burman.yan@gmail.com>2006-12-02 11:26:57 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-12-04 09:42:09 (GMT)
commitf8485350c22b25f5b9804d89cb8fdf6626d0f5cb (patch)
tree969b17561afcf17362eebf16e59570bb66272d0b /arch/powerpc/sysdev/qe_lib/ucc_fast.c
parent04d76b937bdf60a8c9ac34e222e3ca977ab9ddc8 (diff)
downloadlinux-fsl-qoriq-f8485350c22b25f5b9804d89cb8fdf6626d0f5cb.tar.xz
[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>
Diffstat (limited to 'arch/powerpc/sysdev/qe_lib/ucc_fast.c')
-rw-r--r--arch/powerpc/sysdev/qe_lib/ucc_fast.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_fast.c b/arch/powerpc/sysdev/qe_lib/ucc_fast.c
index 75fa310..e657559 100644
--- a/arch/powerpc/sysdev/qe_lib/ucc_fast.c
+++ b/arch/powerpc/sysdev/qe_lib/ucc_fast.c
@@ -216,14 +216,12 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
return -EINVAL;
}
- uccf = (struct ucc_fast_private *)
- kmalloc(sizeof(struct ucc_fast_private), GFP_KERNEL);
+ uccf = kzalloc(sizeof(struct ucc_fast_private), GFP_KERNEL);
if (!uccf) {
uccf_err
("ucc_fast_init: No memory for UCC slow data structure!");
return -ENOMEM;
}
- memset(uccf, 0, sizeof(struct ucc_fast_private));
/* Fill fast UCC structure */
uccf->uf_info = uf_info;