diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-19 14:51:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-23 04:28:14 +0200 |
commit | 665fc901b59ba336bb084ec0a0606ad8fc7d673f (patch) | |
tree | e53b487c3690415f493fd605f6fddc97b1c3f218 /drivers | |
parent | Merge branch 'phy-ocelot-serdes-fix-out-of-bounds-read' (diff) | |
download | linux-665fc901b59ba336bb084ec0a0606ad8fc7d673f.tar.xz linux-665fc901b59ba336bb084ec0a0606ad8fc7d673f.zip |
octeontx2-af: Remove set but not used variable 'block'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c: In function 'rvu_npa_init':
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c:446:20: warning:
variable 'block' set but not used [-Wunused-but-set-variable]
It never used since introduction in
commit 7a37245ef23f ("octeontx2-af: NPA block admin queue init")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c index 0e43a693d119..7531fdc54fa1 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c @@ -443,15 +443,12 @@ static int npa_aq_init(struct rvu *rvu, struct rvu_block *block) int rvu_npa_init(struct rvu *rvu) { struct rvu_hwinfo *hw = rvu->hw; - struct rvu_block *block; int blkaddr, err; blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); if (blkaddr < 0) return 0; - block = &hw->block[blkaddr]; - /* Initialize admin queue */ err = npa_aq_init(rvu, &hw->block[blkaddr]); if (err) |