Revert "ALSA: usb-audio: Correct the return code from snd_usb_endpoint_set_params()"

This reverts commit 3191a00dbe which is
commit 9355b60e40 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I885ce7e2307f14ecc49ec45c1e1ebd288ca70407
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2024-05-16 10:17:17 +00:00
parent cf9556ce0b
commit 3285ea33f4

View File

@@ -1392,8 +1392,6 @@ int snd_usb_endpoint_set_params(struct snd_usb_audio *chip,
ep->curframesize = ep->curpacksize / ep->cur_frame_bytes;
err = update_clock_ref_rate(chip, ep);
if (err >= 0)
err = 0;
unlock:
mutex_unlock(&chip->mutex);
return err;