summaryrefslogtreecommitdiffstats
path: root/drivers/soc/fsl
diff options
context:
space:
mode:
authorLi Yang <leoyang.li@nxp.com>2020-03-24 19:04:18 -0500
committerLi Yang <leoyang.li@nxp.com>2020-03-24 19:04:18 -0500
commitae1f68652c8da79c31d8e491a76eba9b4683fbd7 (patch)
tree3d8cb8c1fa80c27c8a88799e3f62398498bf630a /drivers/soc/fsl
parentb1be4a228086d558ba0efc3f12a82ab6fbca63f3 (diff)
downloadlinux-ae1f68652c8da79c31d8e491a76eba9b4683fbd7.tar.bz2
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>
Diffstat (limited to 'drivers/soc/fsl')
-rw-r--r--drivers/soc/fsl/qe/ucc_slow.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/soc/fsl/qe/ucc_slow.c b/drivers/soc/fsl/qe/ucc_slow.c
index 274d34449846..20fb9d3e1a35 100644
--- a/drivers/soc/fsl/qe/ucc_slow.c
+++ b/drivers/soc/fsl/qe/ucc_slow.c
@@ -168,16 +168,9 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
return -ENOMEM;
}
- uccs->saved_uccm = 0;
- uccs->p_rx_frame = 0;
us_regs = uccs->us_regs;
uccs->p_ucce = (u16 *) & (us_regs->ucce);
uccs->p_uccm = (u16 *) & (us_regs->uccm);
-#ifdef STATISTICS
- uccs->rx_frames = 0;
- uccs->tx_frames = 0;
- uccs->rx_discarded = 0;
-#endif /* STATISTICS */
/* Get PRAM base */
uccs->us_pram_offset =