diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-10-19 17:57:56 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-10-30 14:10:27 +0530 |
commit | 212a93ca435ec847bdfe238f225dd6e8b77927e9 (patch) | |
tree | 60624618954316af245ec02f120bcabfb3966f65 /drivers/dma/ppc4xx | |
parent | 68f35add4ba4c850a33878633e10c02d7ba32d84 (diff) | |
download | lwn-212a93ca435ec847bdfe238f225dd6e8b77927e9.tar.gz lwn-212a93ca435ec847bdfe238f225dd6e8b77927e9.zip |
dmaengine: ppc4xx: remove xor_hw_desc assignment without reading
The xor_hw_desc local variable is assigned but never read:
drivers/dma/ppc4xx/adma.c: In function ‘ppc440spe_desc_set_src_mult’:
drivers/dma/ppc4xx/adma.c:562:17: warning: variable ‘xor_hw_desc’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201019155756.21445-2-krzk@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ppc4xx')
-rw-r--r-- | drivers/dma/ppc4xx/adma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index fea598550582..df7704053d91 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c @@ -559,7 +559,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, int sg_index, unsigned char mult_value) { struct dma_cdb *dma_hw_desc; - struct xor_cb *xor_hw_desc; u32 *psgu; switch (chan->device->id) { @@ -590,7 +589,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, *psgu |= cpu_to_le32(mult_value << mult_index); break; case PPC440SPE_XOR_ID: - xor_hw_desc = desc->hw_desc; break; default: BUG(); |