Commit 212a93ca authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Vinod Koul

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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201019155756.21445-2-krzk@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 68f35add
...@@ -559,7 +559,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, ...@@ -559,7 +559,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc,
int sg_index, unsigned char mult_value) int sg_index, unsigned char mult_value)
{ {
struct dma_cdb *dma_hw_desc; struct dma_cdb *dma_hw_desc;
struct xor_cb *xor_hw_desc;
u32 *psgu; u32 *psgu;
switch (chan->device->id) { switch (chan->device->id) {
...@@ -590,7 +589,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, ...@@ -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); *psgu |= cpu_to_le32(mult_value << mult_index);
break; break;
case PPC440SPE_XOR_ID: case PPC440SPE_XOR_ID:
xor_hw_desc = desc->hw_desc;
break; break;
default: default:
BUG(); BUG();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment