diff options
author | Zhao Qiang <qiang.zhao@nxp.com> | 2016-07-14 22:38:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-16 23:22:02 -0400 |
commit | 18210510cfe418b374e364654743f738ddb75196 (patch) | |
tree | 56308fd1f3c9cd24d76d7803fb4e07d343de5f5e /drivers/net/wan | |
parent | 43b9e127406079d187794a5140a2411fbc6df2df (diff) |
wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'
'uhdlc_priv' has freed twice, drop the first one.
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/fsl_ucc_hdlc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 6edd48afc248..040a45c4b4c1 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c | |||
@@ -1126,7 +1126,6 @@ static int ucc_hdlc_probe(struct platform_device *pdev) | |||
1126 | 1126 | ||
1127 | err_hdlc_init: | 1127 | err_hdlc_init: |
1128 | err_miss_tsa_property: | 1128 | err_miss_tsa_property: |
1129 | kfree(uhdlc_priv); | ||
1130 | if (uhdlc_priv->tsa) | 1129 | if (uhdlc_priv->tsa) |
1131 | kfree(utdm); | 1130 | kfree(utdm); |
1132 | err_alloc_utdm: | 1131 | err_alloc_utdm: |