Skip to content

Commit 72457b3

Browse files
ColinIanKingtiwai
authored andcommitted
ALSA: rawmidi: remove variable dest_frames
Variable dest_frames is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent a293e8e commit 72457b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/core/rawmidi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,6 @@ static int receive_with_tstamp_framing(struct snd_rawmidi_substream *substream,
10501050
struct snd_rawmidi_runtime *runtime = substream->runtime;
10511051
struct snd_rawmidi_framing_tstamp *dest_ptr;
10521052
struct snd_rawmidi_framing_tstamp frame = { .tv_sec = tstamp->tv_sec, .tv_nsec = tstamp->tv_nsec };
1053-
int dest_frames = 0;
10541053
int orig_count = src_count;
10551054
int frame_size = sizeof(struct snd_rawmidi_framing_tstamp);
10561055

@@ -1077,7 +1076,6 @@ static int receive_with_tstamp_framing(struct snd_rawmidi_substream *substream,
10771076
runtime->avail += frame_size;
10781077
runtime->hw_ptr += frame_size;
10791078
runtime->hw_ptr %= runtime->buffer_size;
1080-
dest_frames++;
10811079
}
10821080
return orig_count - src_count;
10831081
}

0 commit comments

Comments
 (0)