Skip to contentSkip to conversation

AsoC/atmel: patch for the unnecessary variable removal

PATCH Applied Liam Girdwood 2 participants 2 messages Jun 3, 2010 1 message not in the archive

lore
Share & tools
lore

Liam Girdwood

author Acked-by
#1 lore raw
In reply to a message not in the archive
Quoted 14 lines · Wan ZongShun

The variable 'periods' of structure 'atmel_runtime_data' seems no use in whole atmel alsa driver,so I make a patch to remove the unnecessary variable.

---
 sound/soc/atmel/atmel-pcm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/atmel/atmel-pcm.c +0 -0
index f6b3cc0..dc5249f 100644

sound/soc/atmel/atmel-pcm.c struct atmel_runtime_data { · line 82

Quoted 7 lines
sound/soc/atmel/atmel-pcm.c +0 -1
@@ -77,7 +77,6 @@ struct atmel_runtime_data {
 	size_t period_size;
 
 	dma_addr_t period_ptr;		/* physical address of next period */
-	int periods;			/* period index of period_ptr */
 
 	/* PDC register save */
 	u32 pdc_xpr_save;
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk