summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-24 16:04:15 +0300
committerTakashi Iwai <tiwai@suse.de>2022-10-24 17:01:05 +0300
commit72457b3abb0c070f73b4a5311d7223cc23d6c6d7 (patch)
tree451f8062aa524ede57e39481cf7b3965fcfa0cf6 /sound/core
parenta293e8ec82790aea77168a7e56e846a4411a7271 (diff)
downloadlinux-72457b3abb0c070f73b4a5311d7223cc23d6c6d7.tar.xz
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 <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20221024130415.2155860-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/rawmidi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index d8edb6055072..7147fda66d93 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -1050,7 +1050,6 @@ static int receive_with_tstamp_framing(struct snd_rawmidi_substream *substream,
struct snd_rawmidi_runtime *runtime = substream->runtime;
struct snd_rawmidi_framing_tstamp *dest_ptr;
struct snd_rawmidi_framing_tstamp frame = { .tv_sec = tstamp->tv_sec, .tv_nsec = tstamp->tv_nsec };
- int dest_frames = 0;
int orig_count = src_count;
int frame_size = sizeof(struct snd_rawmidi_framing_tstamp);
@@ -1077,7 +1076,6 @@ static int receive_with_tstamp_framing(struct snd_rawmidi_substream *substream,
runtime->avail += frame_size;
runtime->hw_ptr += frame_size;
runtime->hw_ptr %= runtime->buffer_size;
- dest_frames++;
}
return orig_count - src_count;
}