diff options
author | Manfred Spraul <manfred@colorfullife.com> | 2014-06-06 14:37:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 16:08:15 -0700 |
commit | 2f2ed41dcaec34f2d6f224aa84efcc5a9dd8d5c3 (patch) | |
tree | 4122b855351d0747a49e47c4d675f0f83df7eafa /firmware/keyspan | |
parent | 1994862dc9c16f360a9169a4d27200d15ba29713 (diff) | |
download | linux-2f2ed41dcaec34f2d6f224aa84efcc5a9dd8d5c3.tar.bz2 |
ipc/sem.c: remove code duplication
count_semzcnt and count_semncnt are more of less identical. The patch
creates a single function that either counts the number of tasks waiting
for zero or waiting due to a decrease operation.
Compared to the initial version, the BUG_ONs were removed.
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/keyspan')
0 files changed, 0 insertions, 0 deletions