Skip to content

Commit ae1f686

Browse files
author
Li Yang
committed
soc: fsl: qe: ucc_slow: remove 0 assignment for kzalloc'ed structure
Not necessary to set to 0 for the kzalloc'ed area so remove these assignements. Signed-off-by: Li Yang <leoyang.li@nxp.com>
1 parent b1be4a2 commit ae1f686

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/soc/fsl/qe/ucc_slow.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,9 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
168168
return -ENOMEM;
169169
}
170170

171-
uccs->saved_uccm = 0;
172-
uccs->p_rx_frame = 0;
173171
us_regs = uccs->us_regs;
174172
uccs->p_ucce = (u16 *) & (us_regs->ucce);
175173
uccs->p_uccm = (u16 *) & (us_regs->uccm);
176-
#ifdef STATISTICS
177-
uccs->rx_frames = 0;
178-
uccs->tx_frames = 0;
179-
uccs->rx_discarded = 0;
180-
#endif /* STATISTICS */
181174

182175
/* Get PRAM base */
183176
uccs->us_pram_offset =

0 commit comments

Comments
 (0)