Skip to content

Commit

Permalink
sysvipc-make-get_maxid-o1-again-checkpatch-fixes
Browse files Browse the repository at this point in the history
ERROR: space required before the open parenthesis '('
torvalds#110: FILE: ipc/util.c:439:
+			if(lid == -1)

total: 1 errors, 0 warnings, 113 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/sysvipc-make-get_maxid-o1-again.patch has style problems, please review.

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

Please run checkpatch prior to sending patches

Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
akpm00 authored and broonie committed Oct 18, 2017
1 parent f033ae2 commit 905d7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)
if (unlikely(lid == ids->max_id)) {
do {
lid--;
if(lid == -1)
if (lid == -1)
break;
} while (!idr_find(&ids->ipcs_idr, lid));
ids->max_id = lid;
Expand Down

0 comments on commit 905d7d8

Please sign in to comment.