diff options
| author | Yan Burman <burman.yan@gmail.com> | 2006-12-02 13:26:57 +0200 | 
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 20:42:09 +1100 | 
| commit | f8485350c22b25f5b9804d89cb8fdf6626d0f5cb (patch) | |
| tree | 969b17561afcf17362eebf16e59570bb66272d0b /arch/powerpc/sysdev/qe_lib/ucc_slow.c | |
| parent | 04d76b937bdf60a8c9ac34e222e3ca977ab9ddc8 (diff) | |
| download | olio-linux-3.10-f8485350c22b25f5b9804d89cb8fdf6626d0f5cb.tar.xz olio-linux-3.10-f8485350c22b25f5b9804d89cb8fdf6626d0f5cb.zip  | |
[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_slow.c')
| -rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc_slow.c | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index a49da6b73ec..47b56203f47 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c @@ -168,14 +168,12 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc  		return -EINVAL;  	} -	uccs = (struct ucc_slow_private *) -		kmalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); +	uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL);  	if (!uccs) {  		uccs_err  		    ("ucc_slow_init: No memory for UCC slow data structure!");  		return -ENOMEM;  	} -	memset(uccs, 0, sizeof(struct ucc_slow_private));  	/* Fill slow UCC structure */  	uccs->us_info = us_info;  |