Commit 685d87f7ccc649ab92b55e18e507a65d0e694eb9

Authored by Linus Torvalds
1 parent f99e8f277f

Revert "pcm_native.c: remove unused label"

This reverts commit 680db0136e0778a0d7e025af7572c6a8d82279e2.  The label
is actually used, but hidden behind CONFIG_SND_DEBUG and the horrible
snd_assert() macro.

That macro could probably be improved to be along the lines of

	#define snd_assert(expr, args...) do { if ((void)(expr),0) { args; } } while (0)

or similar to make sure that we always both evaluate 'expr' and parse
'args', but while gcc should optimize it all away, I'm too lazy to
really verify that.  So I'll just admit defeat and will continue to live
with the annoying warning.

Noted-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Linus "Grr.." Torvalds

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

sound/core/pcm_native.c
... ... @@ -3259,6 +3259,7 @@
3259 3259 runtime = substream->runtime;
3260 3260  
3261 3261 err = fasync_helper(fd, file, on, &runtime->fasync);
  3262 +out:
3262 3263 unlock_kernel();
3263 3264 if (err < 0)
3264 3265 return err;