]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipcsem-fix-semctl-getncnt-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 9 May 2013 23:57:05 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:35 +0000 (14:17 +1000)
same coding-style fixes

Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/sem.c

index f6e10938e1f2a138fcfc39c4a3c4c2e36ee2564b..498a52aa580e43dd5922b72d637dee903dcd7359 100644 (file)
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -797,7 +797,8 @@ static int count_semncnt (struct sem_array * sma, ushort semnum)
 
        semncnt = 0;
        list_for_each_entry(q, &sma->sem_base[semnum].sem_pending, list) {
-               struct sembuf * sops = q->sops;
+               struct sembuf *sops = q->sops;
+
                BUG_ON(sops->sem_num != semnum);
                if ((sops->sem_op < 0) && !(sops->sem_flg & IPC_NOWAIT))
                        semncnt++;