diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-09-28 05:24:57 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-10-06 10:47:53 -0400 |
commit | 395d9dd5dd13c6aa3c8c61a31126af98cd1e747d (patch) | |
tree | ce39f46ca9da01b9c638e068733483a6d4cc5fd4 /sound/oss | |
parent | 9f720bb9409ea5923361fbd3fdbc505ca36cf012 (diff) |
sound: Remove unnecessary semicolon
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p
@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/audio.c | 2 | ||||
-rw-r--r-- | sound/oss/opl3.c | 2 | ||||
-rw-r--r-- | sound/oss/pss.c | 2 | ||||
-rw-r--r-- | sound/oss/sb_ess.c | 22 | ||||
-rw-r--r-- | sound/oss/sb_mixer.c | 4 | ||||
-rw-r--r-- | sound/oss/sys_timer.c | 4 | ||||
-rw-r--r-- | sound/oss/uart6850.c | 2 |
7 files changed, 19 insertions, 19 deletions
diff --git a/sound/oss/audio.c b/sound/oss/audio.c index 4b958b1c497c..09c932f899b8 100644 --- a/sound/oss/audio.c +++ b/sound/oss/audio.c | |||
@@ -354,7 +354,7 @@ int audio_read(int dev, struct file *file, char __user *buf, int count) | |||
354 | 354 | ||
355 | if(copy_to_user(&(buf)[p], fixit, l)) | 355 | if(copy_to_user(&(buf)[p], fixit, l)) |
356 | return -EFAULT; | 356 | return -EFAULT; |
357 | }; | 357 | } |
358 | 358 | ||
359 | DMAbuf_rmchars(dev, buf_no, l); | 359 | DMAbuf_rmchars(dev, buf_no, l); |
360 | 360 | ||
diff --git a/sound/oss/opl3.c b/sound/oss/opl3.c index 407cd677950b..c5c24409ceb0 100644 --- a/sound/oss/opl3.c +++ b/sound/oss/opl3.c | |||
@@ -1190,7 +1190,7 @@ static int opl3_init(int ioaddr, struct module *owner) | |||
1190 | 1190 | ||
1191 | for (i = 0; i < 18; i++) | 1191 | for (i = 0; i < 18; i++) |
1192 | pv_map[i].ioaddr = devc->left_io; | 1192 | pv_map[i].ioaddr = devc->left_io; |
1193 | }; | 1193 | } |
1194 | conf_printf2(devc->fm_info.name, ioaddr, 0, -1, -1); | 1194 | conf_printf2(devc->fm_info.name, ioaddr, 0, -1, -1); |
1195 | 1195 | ||
1196 | for (i = 0; i < SBFM_MAXINSTR; i++) | 1196 | for (i = 0; i < SBFM_MAXINSTR; i++) |
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 0f32a561f15f..145e36b2cfd0 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c | |||
@@ -359,7 +359,7 @@ static int pss_download_boot(pss_confdata * devc, unsigned char *block, int size | |||
359 | { | 359 | { |
360 | /*_____ Send the next byte */ | 360 | /*_____ Send the next byte */ |
361 | outw (*block++, REG (PSS_DATA)); | 361 | outw (*block++, REG (PSS_DATA)); |
362 | }; | 362 | } |
363 | count++; | 363 | count++; |
364 | } | 364 | } |
365 | 365 | ||
diff --git a/sound/oss/sb_ess.c b/sound/oss/sb_ess.c index 5c773dff5ac5..c0be085e4a20 100644 --- a/sound/oss/sb_ess.c +++ b/sound/oss/sb_ess.c | |||
@@ -1104,15 +1104,15 @@ int ess_init(sb_devc * devc, struct address_info *hw_config) | |||
1104 | default: | 1104 | default: |
1105 | printk (KERN_ERR "Invalid esstype=%d specified\n", devc->sbmo.esstype); | 1105 | printk (KERN_ERR "Invalid esstype=%d specified\n", devc->sbmo.esstype); |
1106 | return 0; | 1106 | return 0; |
1107 | }; | 1107 | } |
1108 | if (submodel != -1) { | 1108 | if (submodel != -1) { |
1109 | devc->submodel = submodel; | 1109 | devc->submodel = submodel; |
1110 | sprintf (modelname, "ES%d", devc->sbmo.esstype); | 1110 | sprintf (modelname, "ES%d", devc->sbmo.esstype); |
1111 | chip = modelname; | 1111 | chip = modelname; |
1112 | }; | 1112 | } |
1113 | if (chip == NULL && (ess_minor & 0x0f) < 8) { | 1113 | if (chip == NULL && (ess_minor & 0x0f) < 8) { |
1114 | chip = "ES688"; | 1114 | chip = "ES688"; |
1115 | }; | 1115 | } |
1116 | #ifdef FKS_TEST | 1116 | #ifdef FKS_TEST |
1117 | FKS_test (devc); | 1117 | FKS_test (devc); |
1118 | #endif | 1118 | #endif |
@@ -1122,7 +1122,7 @@ FKS_test (devc); | |||
1122 | */ | 1122 | */ |
1123 | if (chip == NULL && devc->sbmo.esstype == ESSTYPE_LIKE20) { | 1123 | if (chip == NULL && devc->sbmo.esstype == ESSTYPE_LIKE20) { |
1124 | chip = "ES1688"; | 1124 | chip = "ES1688"; |
1125 | }; | 1125 | } |
1126 | 1126 | ||
1127 | if (chip == NULL) { | 1127 | if (chip == NULL) { |
1128 | int type; | 1128 | int type; |
@@ -1150,8 +1150,8 @@ FKS_test (devc); | |||
1150 | if ((type & 0x00ff) != ((type >> 8) & 0x00ff)) { | 1150 | if ((type & 0x00ff) != ((type >> 8) & 0x00ff)) { |
1151 | printk ("ess_init: Unrecognized %04x\n", type); | 1151 | printk ("ess_init: Unrecognized %04x\n", type); |
1152 | } | 1152 | } |
1153 | }; | 1153 | } |
1154 | }; | 1154 | } |
1155 | #if 0 | 1155 | #if 0 |
1156 | /* | 1156 | /* |
1157 | * this one failed: | 1157 | * this one failed: |
@@ -1182,10 +1182,10 @@ FKS_test (devc); | |||
1182 | chip = "ES1788"; | 1182 | chip = "ES1788"; |
1183 | devc->submodel = SUBMDL_ES1788; | 1183 | devc->submodel = SUBMDL_ES1788; |
1184 | } | 1184 | } |
1185 | }; | 1185 | } |
1186 | if (chip == NULL) { | 1186 | if (chip == NULL) { |
1187 | chip = "ES1688"; | 1187 | chip = "ES1688"; |
1188 | }; | 1188 | } |
1189 | 1189 | ||
1190 | printk ( KERN_INFO "ESS chip %s %s%s\n" | 1190 | printk ( KERN_INFO "ESS chip %s %s%s\n" |
1191 | , chip | 1191 | , chip |
@@ -1293,7 +1293,7 @@ printk(KERN_INFO "ess_set_dma_hw: dma8=%d,dma16=%d,dup=%d\n" | |||
1293 | default: | 1293 | default: |
1294 | printk(KERN_ERR "ESS1887: Invalid DMA16 %d\n", dma); | 1294 | printk(KERN_ERR "ESS1887: Invalid DMA16 %d\n", dma); |
1295 | return 0; | 1295 | return 0; |
1296 | }; | 1296 | } |
1297 | ess_chgmixer (devc, 0x78, 0x20, dma16_bits); | 1297 | ess_chgmixer (devc, 0x78, 0x20, dma16_bits); |
1298 | ess_chgmixer (devc, 0x7d, 0x07, dma_bits); | 1298 | ess_chgmixer (devc, 0x7d, 0x07, dma_bits); |
1299 | } | 1299 | } |
@@ -1584,7 +1584,7 @@ printk(KERN_INFO "FKS: write mixer %x: %x\n", port, value); | |||
1584 | udelay(20); | 1584 | udelay(20); |
1585 | outb(((unsigned char) (value & 0xff)), MIXER_DATA); | 1585 | outb(((unsigned char) (value & 0xff)), MIXER_DATA); |
1586 | udelay(20); | 1586 | udelay(20); |
1587 | }; | 1587 | } |
1588 | spin_unlock_irqrestore(&devc->lock, flags); | 1588 | spin_unlock_irqrestore(&devc->lock, flags); |
1589 | } | 1589 | } |
1590 | 1590 | ||
@@ -1761,7 +1761,7 @@ int ess_mixer_reset (sb_devc * devc) | |||
1761 | ess_chgmixer(devc, 0x7a, 0x18, 0x08); | 1761 | ess_chgmixer(devc, 0x7a, 0x18, 0x08); |
1762 | ess_chgmixer(devc, 0x1c, 0x07, 0x07); | 1762 | ess_chgmixer(devc, 0x1c, 0x07, 0x07); |
1763 | break; | 1763 | break; |
1764 | }; | 1764 | } |
1765 | /* | 1765 | /* |
1766 | * Call set_recmask for proper initialization | 1766 | * Call set_recmask for proper initialization |
1767 | */ | 1767 | */ |
diff --git a/sound/oss/sb_mixer.c b/sound/oss/sb_mixer.c index f8f3b7a66b73..acf7586aeb47 100644 --- a/sound/oss/sb_mixer.c +++ b/sound/oss/sb_mixer.c | |||
@@ -410,7 +410,7 @@ static int set_recmask(sb_devc * devc, int mask) | |||
410 | case MDL_SMW: | 410 | case MDL_SMW: |
411 | if (devc->model == MDL_ESS && ess_set_recmask (devc, &devmask)) { | 411 | if (devc->model == MDL_ESS && ess_set_recmask (devc, &devmask)) { |
412 | break; | 412 | break; |
413 | }; | 413 | } |
414 | if (devmask != SOUND_MASK_MIC && | 414 | if (devmask != SOUND_MASK_MIC && |
415 | devmask != SOUND_MASK_LINE && | 415 | devmask != SOUND_MASK_LINE && |
416 | devmask != SOUND_MASK_CD) | 416 | devmask != SOUND_MASK_CD) |
@@ -666,7 +666,7 @@ static void sb_mixer_reset(sb_devc * devc) | |||
666 | 666 | ||
667 | if (devc->model != MDL_ESS || !ess_mixer_reset (devc)) { | 667 | if (devc->model != MDL_ESS || !ess_mixer_reset (devc)) { |
668 | set_recmask(devc, SOUND_MASK_MIC); | 668 | set_recmask(devc, SOUND_MASK_MIC); |
669 | }; | 669 | } |
670 | } | 670 | } |
671 | 671 | ||
672 | int sb_mixer_init(sb_devc * devc, struct module *owner) | 672 | int sb_mixer_init(sb_devc * devc, struct module *owner) |
diff --git a/sound/oss/sys_timer.c b/sound/oss/sys_timer.c index 8db6aefe15e4..9f039831114c 100644 --- a/sound/oss/sys_timer.c +++ b/sound/oss/sys_timer.c | |||
@@ -57,7 +57,7 @@ poll_def_tmr(unsigned long dummy) | |||
57 | { | 57 | { |
58 | def_tmr.expires = (1) + jiffies; | 58 | def_tmr.expires = (1) + jiffies; |
59 | add_timer(&def_tmr); | 59 | add_timer(&def_tmr); |
60 | }; | 60 | } |
61 | 61 | ||
62 | if (tmr_running) | 62 | if (tmr_running) |
63 | { | 63 | { |
@@ -103,7 +103,7 @@ def_tmr_open(int dev, int mode) | |||
103 | { | 103 | { |
104 | def_tmr.expires = (1) + jiffies; | 104 | def_tmr.expires = (1) + jiffies; |
105 | add_timer(&def_tmr); | 105 | add_timer(&def_tmr); |
106 | }; | 106 | } |
107 | 107 | ||
108 | return 0; | 108 | return 0; |
109 | } | 109 | } |
diff --git a/sound/oss/uart6850.c b/sound/oss/uart6850.c index f3f914aa92ee..1079133dd6ab 100644 --- a/sound/oss/uart6850.c +++ b/sound/oss/uart6850.c | |||
@@ -146,7 +146,7 @@ static int uart6850_open(int dev, int mode, | |||
146 | { | 146 | { |
147 | /* printk("Midi6850: Midi busy\n");*/ | 147 | /* printk("Midi6850: Midi busy\n");*/ |
148 | return -EBUSY; | 148 | return -EBUSY; |
149 | }; | 149 | } |
150 | 150 | ||
151 | uart6850_cmd(UART_RESET); | 151 | uart6850_cmd(UART_RESET); |
152 | uart6850_input_loop(); | 152 | uart6850_input_loop(); |