Skip to content

Commit

Permalink
ipcsem-do-not-hold-ipc-lock-more-than-necessary-fix-checkpatch-fixes
Browse files Browse the repository at this point in the history
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 <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and sfrothwell committed Apr 26, 2013
1 parent f48e2b0 commit e6ff9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ static int semctl_main(struct ipc_namespace *ns, int semid, int semnum,
/* GETVAL, GETPID, GETNCTN, GETZCNT: fall-through */
}
err = -EINVAL;
if(semnum < 0 || semnum >= nsems) {
if (semnum < 0 || semnum >= nsems) {
rcu_read_unlock();
goto out_wakeup;
}
Expand Down

0 comments on commit e6ff9d9

Please sign in to comment.