mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	remove unused variables
Remove some unused variables that the compiler warned about.
This commit is contained in:
		
							parent
							
								
									4cdb17c601
								
							
						
					
					
						commit
						fca29a6172
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -824,7 +824,7 @@ static snd_pcm_sframes_t snd_pcm_hw_mmap_commit(snd_pcm_t *pcm,
 | 
				
			||||||
static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm)
 | 
					static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	snd_pcm_hw_t *hw = pcm->private_data;
 | 
						snd_pcm_hw_t *hw = pcm->private_data;
 | 
				
			||||||
	snd_pcm_uframes_t avail, xfer_avail;
 | 
						snd_pcm_uframes_t avail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sync_ptr(hw, 0);
 | 
						sync_ptr(hw, 0);
 | 
				
			||||||
	avail = snd_pcm_mmap_avail(pcm);
 | 
						avail = snd_pcm_mmap_avail(pcm);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -308,7 +308,7 @@ static snd_pcm_sframes_t snd_pcm_mmap_emul_avail_update(snd_pcm_t *pcm)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	mmap_emul_t *map = pcm->private_data;
 | 
						mmap_emul_t *map = pcm->private_data;
 | 
				
			||||||
	snd_pcm_t *slave = map->gen.slave;
 | 
						snd_pcm_t *slave = map->gen.slave;
 | 
				
			||||||
	snd_pcm_sframes_t avail, err;
 | 
						snd_pcm_sframes_t avail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	avail = snd_pcm_avail_update(slave);
 | 
						avail = snd_pcm_avail_update(slave);
 | 
				
			||||||
	if (!map->mmap_emul)
 | 
						if (!map->mmap_emul)
 | 
				
			||||||
| 
						 | 
					@ -448,7 +448,7 @@ int _snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
 | 
				
			||||||
	int err;
 | 
						int err;
 | 
				
			||||||
	snd_pcm_t *spcm;
 | 
						snd_pcm_t *spcm;
 | 
				
			||||||
	snd_config_t *slave = NULL, *sconf;
 | 
						snd_config_t *slave = NULL, *sconf;
 | 
				
			||||||
	snd_pcm_format_t sformat;
 | 
					
 | 
				
			||||||
	snd_config_for_each(i, next, conf) {
 | 
						snd_config_for_each(i, next, conf) {
 | 
				
			||||||
		snd_config_t *n = snd_config_iterator_entry(i);
 | 
							snd_config_t *n = snd_config_iterator_entry(i);
 | 
				
			||||||
		const char *id;
 | 
							const char *id;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -101,7 +101,7 @@ typedef union {
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
	short s[2];
 | 
						short s[2];
 | 
				
			||||||
} val_t;
 | 
					} val_t;
 | 
				
			||||||
static inline int MULTI_DIV_32x16(int a, unsigned short b, int swap)
 | 
					static inline int MULTI_DIV_32x16(int a, unsigned short b)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	val_t v, x, y;
 | 
						val_t v, x, y;
 | 
				
			||||||
	v.i = a;
 | 
						v.i = a;
 | 
				
			||||||
| 
						 | 
					@ -123,7 +123,7 @@ static inline int MULTI_DIV_int(int a, unsigned int b, int swap)
 | 
				
			||||||
	unsigned int gain = (b >> VOL_SCALE_SHIFT);
 | 
						unsigned int gain = (b >> VOL_SCALE_SHIFT);
 | 
				
			||||||
	int fraction;
 | 
						int fraction;
 | 
				
			||||||
	a = swap ? (int)bswap_32(a) : a;
 | 
						a = swap ? (int)bswap_32(a) : a;
 | 
				
			||||||
	fraction = MULTI_DIV_32x16(a, b & VOL_SCALE_MASK, swap);
 | 
						fraction = MULTI_DIV_32x16(a, b & VOL_SCALE_MASK);
 | 
				
			||||||
	if (gain) {
 | 
						if (gain) {
 | 
				
			||||||
		long long amp = (long long)a * gain + fraction;
 | 
							long long amp = (long long)a * gain + fraction;
 | 
				
			||||||
		if (amp > (int)0x7fffffff)
 | 
							if (amp > (int)0x7fffffff)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue