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>
  • Loading branch information
akpm00 authored and hnaz committed Nov 3, 2017
1 parent 93f1186 commit 24b2040
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 @@ -437,7 +437,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 24b2040

Please sign in to comment.