Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Li Yang ae1f6865 b1be4a22

-7
-7
drivers/soc/fsl/qe/ucc_slow.c
··· 168 168 return -ENOMEM; 169 169 } 170 170 171 - uccs->saved_uccm = 0; 172 - uccs->p_rx_frame = 0; 173 171 us_regs = uccs->us_regs; 174 172 uccs->p_ucce = (u16 *) & (us_regs->ucce); 175 173 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 */ 181 174 182 175 /* Get PRAM base */ 183 176 uccs->us_pram_offset =