diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-02-21 15:05:16 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2014-02-26 16:00:25 (GMT) |
commit | 2ef8ef74f2f410f914290072df6ecffa0d9c9015 (patch) | |
tree | c3a74a0470534798f4a0eef2079d243bb1caaae0 /drivers/net/ethernet/freescale/dpa | |
parent | 9a714298b9e27276663f6d75c479f10416142ed2 (diff) | |
download | linux-fsl-qoriq-2ef8ef74f2f410f914290072df6ecffa0d9c9015.tar.xz |
dpaa_eth: fix sparse report in dpaa_eth_common.c
Fix one sparse warning in dpaa_eth_common.c.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I12a0bb8463830b0b264f84f427cd8f954981d26f
Reviewed-on: http://git.am.freescale.net:8181/9027
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
(cherry picked from commit 888b343d28d612f0bb4dc99a0ce39238e03e7f09)
Reviewed-on: http://git.am.freescale.net:8181/9192
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c index 5ae98dd..a31b705 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c @@ -784,7 +784,7 @@ _dpa_bp_free(struct dpa_bp *dpa_bp) if (bp->free_buf_cb) dpa_bp_drain(bp); - dpa_bp_array[bp->bpid] = 0; + dpa_bp_array[bp->bpid] = NULL; bman_free_pool(bp->pool); if (bp->dev) |