From: Manfred Spraul Date: Fri, 6 Jun 2014 21:37:48 +0000 (-0700) Subject: ipc/sem.c: remove code duplication X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~4^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2ed41dcaec34f2d6f224aa84efcc5a9dd8d5c3;p=pandora-kernel.git 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 Cc: Davidlohr Bueso Cc: Michael Kerrisk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed