Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 395d9dd5 authored by Peter Senna Tschudin's avatar Peter Senna Tschudin Committed by Takashi Iwai
Browse files

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: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9f720bb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

+1 −1
Original line number Diff line number Diff line
@@ -538,7 +538,7 @@ munge_int32 (unsigned int src,
	                            /* Note: we leave the upper bits in place */ 

		dst++;
 	};
	}
	return dst;
};

+1 −1
Original line number Diff line number Diff line
@@ -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);

Loading