[PATCH 3/6] ipc/sem.c: remove code duplication

2014-05-18 Thread Manfred Spraul
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 --- ipc/sem.c

Re: [PATCH 3/6] ipc/sem.c: remove code duplication

2014-05-12 Thread Davidlohr Bueso
On Sat, 2014-05-10 at 12:03 +0200, Manfred Spraul wrote: > 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. This is a nice cleanup. > Signed-off-by: M

[PATCH 3/6] ipc/sem.c: remove code duplication

2014-05-10 Thread Manfred Spraul
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. Signed-off-by: Manfred Spraul --- ipc/sem.c | 103 ++