]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ipc-add-sysctl-to-specify-desired-next-object-id-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 3 Nov 2012 00:43:04 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:33 +0000 (15:15 +1100)
ERROR: space required before the open parenthesis '('
#123: FILE: ipc/util.c:285:
+ if(ids->seq > ids->seq_max)

total: 1 errors, 0 warnings, 94 lines checked

./patches/ipc-add-sysctl-to-specify-desired-next-object-id.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/util.c

index a961e469433ade3cba9dcf7ad51f39d193694527..74e1d9c7a98afcef566b80bf906e1398f94e7760 100644 (file)
@@ -282,7 +282,7 @@ int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size)
 
        if (next_id < 0) {
                new->seq = ids->seq++;
-               if(ids->seq > ids->seq_max)
+               if (ids->seq > ids->seq_max)
                        ids->seq = 0;
        } else {
                new->seq = ipcid_to_seqx(next_id);