diff options
| author | Lee Jones <lee.jones@linaro.org> | 2020-11-03 15:28:38 +0000 | 
|---|---|---|
| committer | Li Yang <leoyang.li@nxp.com> | 2020-11-23 17:20:08 -0600 | 
| commit | 3d1d8f2943e23bd329b63548cdcc915b3657c4d2 (patch) | |
| tree | d78accfcf5071d1f53bd220675afce90da4b435b | |
| parent | 0d0807bc2e05844db9c2fb78d1f36d98ddc8a3fa (diff) | |
soc: fsl: qbman: qman: Remove unused variable 'dequeue_wq'
Fixes the following W=1 kernel build warning(s):
 drivers/soc/fsl/qbman/qman.c: In function ‘qman_shutdown_fq’:
 drivers/soc/fsl/qbman/qman.c:2700:8: warning: variable ‘dequeue_wq’ set but not used [-Wunused-but-set-variable]
Cc: Li Yang <leoyang.li@nxp.com>
Cc: YueHaibing <yuehaibing@huawei.com>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
| -rw-r--r-- | drivers/soc/fsl/qbman/qman.c | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index 9888a7061873..62b182c3a8b0 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -2622,7 +2622,7 @@ int qman_shutdown_fq(u32 fqid)  	union qm_mc_command *mcc;  	union qm_mc_result *mcr;  	int orl_empty, drain = 0, ret = 0; -	u32 channel, wq, res; +	u32 channel, res;  	u8 state;  	p = get_affine_portal(); @@ -2655,7 +2655,7 @@ int qman_shutdown_fq(u32 fqid)  	DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ);  	/* Need to store these since the MCR gets reused */  	channel = qm_fqd_get_chan(&mcr->queryfq.fqd); -	wq = qm_fqd_get_wq(&mcr->queryfq.fqd); +	qm_fqd_get_wq(&mcr->queryfq.fqd);  	if (channel < qm_channel_pool1) {  		channel_portal = get_portal_for_channel(channel); @@ -2697,7 +2697,6 @@ int qman_shutdown_fq(u32 fqid)  			 * to dequeue from the channel the FQ is scheduled on  			 */  			int found_fqrn = 0; -			u16 dequeue_wq = 0;  			/* Flag that we need to drain FQ */  			drain = 1; @@ -2705,11 +2704,8 @@ int qman_shutdown_fq(u32 fqid)  			if (channel >= qm_channel_pool1 &&  			    channel < qm_channel_pool1 + 15) {  				/* Pool channel, enable the bit in the portal */ -				dequeue_wq = (channel - -					      qm_channel_pool1 + 1)<<4 | wq;  			} else if (channel < qm_channel_pool1) {  				/* Dedicated channel */ -				dequeue_wq = wq;  			} else {  				dev_err(dev, "Can't recover FQ 0x%x, ch: 0x%x",  					fqid, channel); | 
