diff options
author | Marian Rotariu <marian.rotariu@freescale.com> | 2014-06-16 15:36:35 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2014-06-17 07:49:11 (GMT) |
commit | 4e6f65e91cc451719553d28c88d2ccb7bed7ca49 (patch) | |
tree | ffeb4f9be7476e42edd0459e8395c4618a06829b /drivers/net/ethernet/freescale/dpa | |
parent | 088ee2cf39f30454f905a48b5acb531b07bb6deb (diff) | |
download | linux-fsl-qoriq-4e6f65e91cc451719553d28c88d2ccb7bed7ca49.tar.xz |
dpaa_eth: clean-up code for macless
Remove unused local variable and unnecessary CGR function calls. Macless does
not use CGR capabilities or specific port fqs.
Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com>
Change-Id: I13ac2037266948a22ab16606bd65e9e965d9aa32
Reviewed-on: http://git.am.freescale.net:8181/13672
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c index 56bf16b..f27ce5c 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c @@ -320,7 +320,6 @@ static int dpaa_eth_macless_probe(struct platform_device *_of_dev) struct dpa_priv_s *priv = NULL; struct dpa_percpu_priv_s *percpu_priv; static struct proxy_device *proxy_dev; - struct fm_port_fqs port_fqs; struct task_struct *kth; static u8 macless_idx; @@ -381,8 +380,6 @@ static int dpaa_eth_macless_probe(struct platform_device *_of_dev) INIT_LIST_HEAD(&priv->dpa_fq_list); - memset(&port_fqs, 0, sizeof(port_fqs)); - err = dpa_fq_probe_macless(dev, &priv->dpa_fq_list, RX); if (!err) err = dpa_fq_probe_macless(dev, &priv->dpa_fq_list, @@ -461,11 +458,8 @@ netdev_init_failed: free_percpu(priv->percpu_priv); alloc_percpu_failed: fq_alloc_failed: - if (net_dev) { + if (net_dev) dpa_fq_free(dev, &priv->dpa_fq_list); - qman_release_cgrid(priv->cgr_data.cgr.cgrid); - qman_delete_cgr(&priv->cgr_data.cgr); - } add_channel_failed: get_channel_failed: if (net_dev) |