diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 06:24:47 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 06:26:20 +0400 |
commit | 685d87f7ccc649ab92b55e18e507a65d0e694eb9 (patch) | |
tree | 3ac26bc207c6450f0d452edbbcfd72acc821b24f /sound/core | |
parent | f99e8f277f1172c49ac7b0585aed5b094fe235d4 (diff) | |
download | linux-685d87f7ccc649ab92b55e18e507a65d0e694eb9.tar.xz |
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
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_native.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 333cff68c150..c49b9d9e303c 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -3259,6 +3259,7 @@ static int snd_pcm_fasync(int fd, struct file * file, int on) runtime = substream->runtime; err = fasync_helper(fd, file, on, &runtime->fasync); +out: unlock_kernel(); if (err < 0) return err; |