ALSA: pcm: Fix poll error return codes
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 4 May 2016 13:59:07 +0000 (14:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 May 2016 15:34:49 +0000 (17:34 +0200)
commite099aeea639ce491d3cd1c3802fe34d98045ffd8
tree87f090215dc89255ef6a08bea3a82ed72e18c6a5
parent0c95c1d6197f3edd3f6ef76f927d67e8ec0794ed
ALSA: pcm: Fix poll error return codes

We can't return a negative error code from the poll callback the return
type is unsigned and is checked against the poll specific flags we need
to return POLLERR if we encounter an error.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c