]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipc-add-sysctl-to-specify-desired-next-object-id-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 25 Oct 2012 01:15:17 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 05:50:00 +0000 (16:50 +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);