Skip to content

Commit 5aba855

Browse files
akpm00sfrothwell
authored andcommitted
ipcsem-do-not-hold-ipc-lock-more-than-necessary-fix-checkpatch-fixes
ERROR: space required before the open parenthesis '(' torvalds#25: FILE: ipc/sem.c:1101: + if(semnum < 0 || semnum >= nsems) { total: 1 errors, 0 warnings, 12 lines checked ./patches/ipcsem-do-not-hold-ipc-lock-more-than-necessary-fix.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: Sasha Levin <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 4423de1 commit 5aba855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipc/sem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ static int semctl_main(struct ipc_namespace *ns, int semid, int semnum,
10981098
/* GETVAL, GETPID, GETNCTN, GETZCNT: fall-through */
10991099
}
11001100
err = -EINVAL;
1101-
if(semnum < 0 || semnum >= nsems) {
1101+
if (semnum < 0 || semnum >= nsems) {
11021102
rcu_read_unlock();
11031103
goto out_wakeup;
11041104
}

0 commit comments

Comments
 (0)