ALSA: pcm: Simplify forward/rewind codes
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 May 2017 18:16:44 +0000 (20:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 21 May 2017 06:58:30 +0000 (08:58 +0200)
commite0327a0f214154b517fa2b325acd8d42736ac95b
treee58812594b993f30c4b56c47e458c29e0710f814
parentf839cc1cbd29f2160ef4e621b920e254cc84133a
ALSA: pcm: Simplify forward/rewind codes

Factor out the common codes in snd_pcm_*_forward() and *_rewind()
functions to simplify the codes.  No functional changes.

Reviewd-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c