sound: Remove unnecessary semicolon
Subsystems (2)
PATCH v2 1/1 sound: Remove unnecessary semicolon
Remove unnecessary semicolon
And:sound/drivers/vx/vx_pcm.c: Convert spaces into tab
Found by http://coccinelle.lip6.fr/
--- sound/drivers/opl3/opl3_midi.c | 2 +- sound/drivers/vx/vx_pcm.c | 2 +- sound/isa/sb/emu8000_callback.c | 2 +- sound/isa/wavefront/wavefront_synth.c | 2 +- sound/oss/audio.c | 2 +- sound/oss/opl3.c | 2 +- sound/oss/pss.c | 2 +- sound/oss/sb_ess.c | 22 +++++++++++----------- sound/oss/sb_mixer.c | 4 ++-- sound/oss/sys_timer.c | 4 ++-- sound/oss/uart6850.c | 2 +- sound/pci/asihpi/asihpi.c | 2 +- sound/pci/au88x0/au88x0_game.c | 2 +- sound/pci/au88x0/au88x0_pcm.c | 2 +- sound/pci/emu10k1/emu10k1_callback.c | 2 +- sound/pci/emu10k1/emupcm.c | 2 +- sound/pci/intel8x0.c | 2 +- sound/pci/mixart/mixart_hwdep.c | 2 +- sound/sparc/amd7930.c | 4 ++-- sound/sparc/dbri.c | 2 +- 20 files changed, 33 insertions(+), 33 deletions(-)
sound/drivers/opl3/opl3_midi.c +1 -1
@@ -163,7 +163,7 @@ static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op,struct best *bp;for (i =0 ; i <END ; i++) { - best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/drivers/vx/vx_pcm.c +1 -1
@@ -184,7 +184,7 @@ static int vx_set_format(struct vx_core *chip, struct vx_pipe *pipe,default :snd_BUG ();return -EINVAL ; - }; + }return vx_set_stream_format (chip, pipe, header); }
sound/isa/sb/emu8000_callback.c +1 -1
@@ -175,7 +175,7 @@ get_voice(struct snd_emux *emu, struct snd_emux_port *port) hw = emu->hw;for (i =0 ; i <END ; i++) { - best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/isa/wavefront/wavefront_synth.c +1 -1
@@ -538,7 +538,7 @@ munge_int32 (unsigned int src,/* Note: we leave the upper bits in place */ dst++; - }; + }return dst; };
sound/oss/audio.c +1 -1
@@ -354,7 +354,7 @@ int audio_read(int dev, struct file *file, char __user *buf, int count)if (copy_to_user (&(buf)[p], fixit, l))return -EFAULT ; - }; + }DMAbuf_rmchars (dev, buf_no, l);
sound/oss/opl3.c +1 -1
@@ -1190,7 +1190,7 @@ static int opl3_init(int ioaddr, struct module *owner)for (i =0 ; i <18 ; i++) pv_map[i].ioaddr = devc->left_io; - }; + }conf_printf2 (devc->fm_info.name, ioaddr,0 ,-1 ,-1 );for (i =0 ; i <SBFM_MAXINSTR ; i++)
sound/oss/pss.c +1 -1
@@ -359,7 +359,7 @@ static int pss_download_boot(pss_confdata * devc, unsigned char *block, int size {/*_____ Send the next byte */ outw (*block++,REG (PSS_DATA )); - }; + } count++; }
sound/oss/sb_ess.c +11 -11
@@ -1104,15 +1104,15 @@ int ess_init(sb_devc * devc, struct address_info *hw_config)default :printk (KERN_ERR "Invalid esstype=%d specified\n" , devc->sbmo.esstype);return 0 ; - }; + }if (submodel !=-1 ) { devc->submodel = submodel;sprintf (modelname,"ES%d" , devc->sbmo.esstype); chip = modelname; - }; + }if (chip =NULL && (ess_minor &0x0f ) <8 ) { chip ="ES688" ; - }; + }#ifdef FKS_TEST FKS_test (devc);#endif
@@ -1122,7 +1122,7 @@ FKS_test (devc);*/ if (chip =NULL && devc->sbmo.esstype =ESSTYPE_LIKE20 ) { chip ="ES1688" ; - }; + }if (chip =NULL ) {int type;
@@ -1150,8 +1150,8 @@ FKS_test (devc);if ((type &0x00ff ) != ((type >>8 ) &0x00ff )) {printk ("ess_init: Unrecognized %04x\n" , type); } - }; - }; + } + }#if 0 /* * this one failed:
@@ -1182,10 +1182,10 @@ FKS_test (devc); chip ="ES1788" ; devc->submodel =SUBMDL_ES1788 ; } - }; + }if (chip =NULL ) { chip ="ES1688" ; - }; + }printk (KERN_INFO "ESS chip %s %s%s\n" , chip
@@ -1293,7 +1293,7 @@ printk(KERN_INFO "ess_set_dma_hw: dma8=%d,dma16=%d,dup=%d\n"default :printk (KERN_ERR "ESS1887: Invalid DMA16 %d\n" , dma);return 0 ; - }; + }ess_chgmixer (devc,0x78 ,0x20 , dma16_bits);ess_chgmixer (devc,0x7d ,0x07 , dma_bits); }
@@ -1584,7 +1584,7 @@ printk(KERN_INFO "FKS: write mixer %x: %x\n", port, value);udelay (20 );outb (((unsigned char ) (value &0xff )),MIXER_DATA );udelay (20 ); - }; + }spin_unlock_irqrestore (&devc->lock, flags); }
@@ -1761,7 +1761,7 @@ int ess_mixer_reset (sb_devc * devc)ess_chgmixer (devc,0x7a ,0x18 ,0x08 );ess_chgmixer (devc,0x1c ,0x07 ,0x07 );break ; - }; + }/* * Call set_recmask for proper initialization */
sound/oss/sb_mixer.c +2 -2
@@ -410,7 +410,7 @@ static int set_recmask(sb_devc * devc, int mask)case MDL_SMW :if (devc->model =MDL_ESS &&ess_set_recmask (devc, &devmask)) {break ; - }; + }if (devmask !=SOUND_MASK_MIC && devmask !=SOUND_MASK_LINE && devmask !=SOUND_MASK_CD )
@@ -666,7 +666,7 @@ static void sb_mixer_reset(sb_devc * devc)if (devc->model !=MDL_ESS || !ess_mixer_reset (devc)) {set_recmask (devc,SOUND_MASK_MIC ); - }; + } }int sb_mixer_init (sb_devc * devc,struct module *owner)
sound/oss/sys_timer.c +2 -2
@@ -57,7 +57,7 @@ poll_def_tmr(unsigned long dummy) { def_tmr.expires = (1 ) + jiffies;add_timer (&def_tmr); - }; + }if (tmr_running) {
@@ -103,7 +103,7 @@ def_tmr_open(int dev, int mode) { def_tmr.expires = (1 ) + jiffies;add_timer (&def_tmr); - }; + }return 0 ; }
sound/oss/uart6850.c +1 -1
@@ -146,7 +146,7 @@ static int uart6850_open(int dev, int mode, {/* printk("Midi6850: Midi busy\n");*/ return -EBUSY ; - }; + }uart6850_cmd (UART_RESET );uart6850_input_loop ();
sound/pci/asihpi/asihpi.c +1 -1
@@ -2658,7 +2658,7 @@ static int __devinit snd_card_asihpi_mixer_new(struct snd_card_asihpi *asihpi) hpi_ctl.dst_node_type, hpi_ctl.dst_node_index);continue ; - }; + }if (err <0 )return err; }
sound/pci/au88x0/au88x0_game.c +1 -1
@@ -100,7 +100,7 @@ static int __devinit vortex_gameport_register(vortex_t * vortex)if (!gp) {printk (KERN_ERR "vortex: cannot allocate memory for gameport\n" );return -ENOMEM ; - }; + }gameport_set_name (gp,"AU88x0 Gameport" );gameport_set_phys (gp,"pci%s/gameport0" ,pci_name (vortex->pci_dev));
sound/pci/au88x0/au88x0_pcm.c +1 -1
@@ -585,7 +585,7 @@ static int snd_vortex_pcm_vol_put(struct snd_kcontrol *kcontrol,case 4 : mixin = p->mixin[i];break ; - }; + } vol = p->vol[i];vortex_mix_setinputvolumebyte (vortex, vortex->mixplayb[i], mixin, vol);
sound/pci/emu10k1/emu10k1_callback.c +1 -1
@@ -228,7 +228,7 @@ lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw,int i;for (i =0 ; i <V_END ; i++) { - best[i].time = (unsigned int )-1 ;/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )-1 ;/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/pci/emu10k1/emupcm.c +1 -1
@@ -1310,7 +1310,7 @@ static int snd_emu10k1_capture_efx_open(struct snd_pcm_substream *substream) runtime->hw.channels_min runtime->hw.channels_max = 16; break; - }; + }#endif #if 0 /* For 96kHz */
sound/pci/intel8x0.c +1 -1
@@ -2226,7 +2226,7 @@ static int __devinit snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock,case DEVICE_INTEL_ICH4 : chip->spdif_idx =ICHD_SPBAR ;break ; - }; + } } chip->in_ac97_init =1 ;
sound/pci/mixart/mixart_hwdep.c +1 -1
@@ -538,7 +538,7 @@ static int mixart_dsp_load(struct mixart_mgr* mgr, int index, const struct firmwif ((err =snd_card_register (chip->card)) <0 )return err; - }; + }snd_printdd ("miXart firmware downloaded and successfully set up\n" );
sound/sparc/amd7930.c +2 -2
@@ -813,7 +813,7 @@ static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elemdefault : swval = &amd->pgain;break ; - }; + } ucontrol->value.integer.value[0 ] = *swval;
@@ -838,7 +838,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elemdefault : swval = &amd->pgain;break ; - }; + }spin_lock_irqsave (&amd->lock, flags);
sound/sparc/dbri.c +1 -1
@@ -592,7 +592,7 @@ static __u32 reverse_bytes(__u32 b, int len)break ;default :printk (KERN_ERR "DBRI reverse_bytes: unsupported length\n" ); - }; + }return b; }
Signature · 1 line
1.7.11.4
PATCH v2 1/1 sound: Remove unnecessary semicolon
Remove unnecessary semicolon
And:sound/drivers/vx/vx_pcm.c: Convert spaces into tab
Found by http://coccinelle.lip6.fr/
--- sound/drivers/opl3/opl3_midi.c | 2 +- sound/drivers/vx/vx_pcm.c | 2 +- sound/isa/sb/emu8000_callback.c | 2 +- sound/isa/wavefront/wavefront_synth.c | 2 +- sound/oss/audio.c | 2 +- sound/oss/opl3.c | 2 +- sound/oss/pss.c | 2 +- sound/oss/sb_ess.c | 22 +++++++++++----------- sound/oss/sb_mixer.c | 4 ++-- sound/oss/sys_timer.c | 4 ++-- sound/oss/uart6850.c | 2 +- sound/pci/asihpi/asihpi.c | 2 +- sound/pci/au88x0/au88x0_game.c | 2 +- sound/pci/au88x0/au88x0_pcm.c | 2 +- sound/pci/emu10k1/emu10k1_callback.c | 2 +- sound/pci/emu10k1/emupcm.c | 2 +- sound/pci/intel8x0.c | 2 +- sound/pci/mixart/mixart_hwdep.c | 2 +- sound/sparc/amd7930.c | 4 ++-- sound/sparc/dbri.c | 2 +- 20 files changed, 33 insertions(+), 33 deletions(-)
sound/drivers/opl3/opl3_midi.c +1 -1
@@ -163,7 +163,7 @@ static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op,struct best *bp;for (i =0 ; i <END ; i++) { - best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/drivers/vx/vx_pcm.c +1 -1
@@ -184,7 +184,7 @@ static int vx_set_format(struct vx_core *chip, struct vx_pipe *pipe,default :snd_BUG ();return -EINVAL ; - }; + }return vx_set_stream_format (chip, pipe, header); }
sound/isa/sb/emu8000_callback.c +1 -1
@@ -175,7 +175,7 @@ get_voice(struct snd_emux *emu, struct snd_emux_port *port) hw = emu->hw;for (i =0 ; i <END ; i++) { - best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )(-1 );/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/isa/wavefront/wavefront_synth.c +1 -1
@@ -538,7 +538,7 @@ munge_int32 (unsigned int src,/* Note: we leave the upper bits in place */ dst++; - }; + }return dst; };
sound/oss/audio.c +1 -1
@@ -354,7 +354,7 @@ int audio_read(int dev, struct file *file, char __user *buf, int count)if (copy_to_user (&(buf)[p], fixit, l))return -EFAULT ; - }; + }DMAbuf_rmchars (dev, buf_no, l);
sound/oss/opl3.c +1 -1
@@ -1190,7 +1190,7 @@ static int opl3_init(int ioaddr, struct module *owner)for (i =0 ; i <18 ; i++) pv_map[i].ioaddr = devc->left_io; - }; + }conf_printf2 (devc->fm_info.name, ioaddr,0 ,-1 ,-1 );for (i =0 ; i <SBFM_MAXINSTR ; i++)
sound/oss/pss.c +1 -1
@@ -359,7 +359,7 @@ static int pss_download_boot(pss_confdata * devc, unsigned char *block, int size {/*_____ Send the next byte */ outw (*block++,REG (PSS_DATA )); - }; + } count++; }
sound/oss/sb_ess.c +11 -11
@@ -1104,15 +1104,15 @@ int ess_init(sb_devc * devc, struct address_info *hw_config)default :printk (KERN_ERR "Invalid esstype=%d specified\n" , devc->sbmo.esstype);return 0 ; - }; + }if (submodel !=-1 ) { devc->submodel = submodel;sprintf (modelname,"ES%d" , devc->sbmo.esstype); chip = modelname; - }; + }if (chip =NULL && (ess_minor &0x0f ) <8 ) { chip ="ES688" ; - }; + }#ifdef FKS_TEST FKS_test (devc);#endif
@@ -1122,7 +1122,7 @@ FKS_test (devc);*/ if (chip =NULL && devc->sbmo.esstype =ESSTYPE_LIKE20 ) { chip ="ES1688" ; - }; + }if (chip =NULL ) {int type;
@@ -1150,8 +1150,8 @@ FKS_test (devc);if ((type &0x00ff ) != ((type >>8 ) &0x00ff )) {printk ("ess_init: Unrecognized %04x\n" , type); } - }; - }; + } + }#if 0 /* * this one failed:
@@ -1182,10 +1182,10 @@ FKS_test (devc); chip ="ES1788" ; devc->submodel =SUBMDL_ES1788 ; } - }; + }if (chip =NULL ) { chip ="ES1688" ; - }; + }printk (KERN_INFO "ESS chip %s %s%s\n" , chip
@@ -1293,7 +1293,7 @@ printk(KERN_INFO "ess_set_dma_hw: dma8=%d,dma16=%d,dup=%d\n"default :printk (KERN_ERR "ESS1887: Invalid DMA16 %d\n" , dma);return 0 ; - }; + }ess_chgmixer (devc,0x78 ,0x20 , dma16_bits);ess_chgmixer (devc,0x7d ,0x07 , dma_bits); }
@@ -1584,7 +1584,7 @@ printk(KERN_INFO "FKS: write mixer %x: %x\n", port, value);udelay (20 );outb (((unsigned char ) (value &0xff )),MIXER_DATA );udelay (20 ); - }; + }spin_unlock_irqrestore (&devc->lock, flags); }
@@ -1761,7 +1761,7 @@ int ess_mixer_reset (sb_devc * devc)ess_chgmixer (devc,0x7a ,0x18 ,0x08 );ess_chgmixer (devc,0x1c ,0x07 ,0x07 );break ; - }; + }/* * Call set_recmask for proper initialization */
sound/oss/sb_mixer.c +2 -2
@@ -410,7 +410,7 @@ static int set_recmask(sb_devc * devc, int mask)case MDL_SMW :if (devc->model =MDL_ESS &&ess_set_recmask (devc, &devmask)) {break ; - }; + }if (devmask !=SOUND_MASK_MIC && devmask !=SOUND_MASK_LINE && devmask !=SOUND_MASK_CD )
@@ -666,7 +666,7 @@ static void sb_mixer_reset(sb_devc * devc)if (devc->model !=MDL_ESS || !ess_mixer_reset (devc)) {set_recmask (devc,SOUND_MASK_MIC ); - }; + } }int sb_mixer_init (sb_devc * devc,struct module *owner)
sound/oss/sys_timer.c +2 -2
@@ -57,7 +57,7 @@ poll_def_tmr(unsigned long dummy) { def_tmr.expires = (1 ) + jiffies;add_timer (&def_tmr); - }; + }if (tmr_running) {
@@ -103,7 +103,7 @@ def_tmr_open(int dev, int mode) { def_tmr.expires = (1 ) + jiffies;add_timer (&def_tmr); - }; + }return 0 ; }
sound/oss/uart6850.c +1 -1
@@ -146,7 +146,7 @@ static int uart6850_open(int dev, int mode, {/* printk("Midi6850: Midi busy\n");*/ return -EBUSY ; - }; + }uart6850_cmd (UART_RESET );uart6850_input_loop ();
sound/pci/asihpi/asihpi.c +1 -1
@@ -2658,7 +2658,7 @@ static int __devinit snd_card_asihpi_mixer_new(struct snd_card_asihpi *asihpi) hpi_ctl.dst_node_type, hpi_ctl.dst_node_index);continue ; - }; + }if (err <0 )return err; }
sound/pci/au88x0/au88x0_game.c +1 -1
@@ -100,7 +100,7 @@ static int __devinit vortex_gameport_register(vortex_t * vortex)if (!gp) {printk (KERN_ERR "vortex: cannot allocate memory for gameport\n" );return -ENOMEM ; - }; + }gameport_set_name (gp,"AU88x0 Gameport" );gameport_set_phys (gp,"pci%s/gameport0" ,pci_name (vortex->pci_dev));
sound/pci/au88x0/au88x0_pcm.c +1 -1
@@ -585,7 +585,7 @@ static int snd_vortex_pcm_vol_put(struct snd_kcontrol *kcontrol,case 4 : mixin = p->mixin[i];break ; - }; + } vol = p->vol[i];vortex_mix_setinputvolumebyte (vortex, vortex->mixplayb[i], mixin, vol);
sound/pci/emu10k1/emu10k1_callback.c +1 -1
@@ -228,7 +228,7 @@ lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw,int i;for (i =0 ; i <V_END ; i++) { - best[i].time = (unsigned int )-1 ;/* XXX MAX_?INT really */ ; + best[i].time = (unsigned int )-1 ;/* XXX MAX_?INT really */ best[i].voice =-1 ; }
sound/pci/emu10k1/emupcm.c +1 -1
@@ -1310,7 +1310,7 @@ static int snd_emu10k1_capture_efx_open(struct snd_pcm_substream *substream) runtime->hw.channels_min runtime->hw.channels_max = 16; break; - }; + }#endif #if 0 /* For 96kHz */
sound/pci/intel8x0.c +1 -1
@@ -2226,7 +2226,7 @@ static int __devinit snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock,case DEVICE_INTEL_ICH4 : chip->spdif_idx =ICHD_SPBAR ;break ; - }; + } } chip->in_ac97_init =1 ;
sound/pci/mixart/mixart_hwdep.c +1 -1
@@ -538,7 +538,7 @@ static int mixart_dsp_load(struct mixart_mgr* mgr, int index, const struct firmwif ((err =snd_card_register (chip->card)) <0 )return err; - }; + }snd_printdd ("miXart firmware downloaded and successfully set up\n" );
sound/sparc/amd7930.c +2 -2
@@ -813,7 +813,7 @@ static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elemdefault : swval = &amd->pgain;break ; - }; + } ucontrol->value.integer.value[0 ] = *swval;
@@ -838,7 +838,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elemdefault : swval = &amd->pgain;break ; - }; + }spin_lock_irqsave (&amd->lock, flags);
sound/sparc/dbri.c +1 -1
@@ -592,7 +592,7 @@ static __u32 reverse_bytes(__u32 b, int len)break ;default :printk (KERN_ERR "DBRI reverse_bytes: unsupported length\n" ); - }; + }return b; }
Signature · 1 line
1.7.11.4
Quoted 9 lines · Peter Senna Tschudin
Remove unnecessary semicolon
And:
sound/drivers/vx/vx_pcm.c: Convert spaces into tabFound by http://coccinelle.lip6.fr/
Signed-off-by Peter Senna Tschudin <[email protected]>---
Next time, could you put a little comment here under the --- line about what changed between v1 and v2?
regards,
dan carpenter
Quoted 3 lines
Next time, could you put a little comment here under the --- line about what changed between v1 and v2?
Sorry for that. I've sent newer version following your suggestion.
Thanks.
Signature · 1 line
Peter