From 6f4a35054b9ea327ba6ba3d402e12a1a457288be Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 4 Oct 2017 01:05:14 +0000 Subject: [PATCH] sysvipc-make-get_maxid-o1-again-checkpatch-fixes ERROR: space required before the open parenthesis '(' #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 Signed-off-by: Andrew Morton --- ipc/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/util.c b/ipc/util.c index 5c9b231c78203b..9bb5da3db83203 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -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;