Date: Fri, 17 Jun 2022 19:40:26 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 89daba2ff403 - stable/13 - sysvsem: Trim traiing whitespace Message-ID: <202206171940.25HJeQZA025812@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=89daba2ff4034341718082d93ff7cb670340401a commit 89daba2ff4034341718082d93ff7cb670340401a Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-05-14 11:06:40 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-06-17 19:35:17 +0000 sysvsem: Trim traiing whitespace MFC after: 2 weeks (cherry picked from commit f0b0fdf15efee38ee6989ec2b1668f065704c7df) --- sys/kern/sysv_sem.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 14487cd16282..fda4d263535d 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -669,7 +669,7 @@ sys___semctl(struct thread *td, struct __semctl_args *uap) break; case SETVAL: semun.val = arg.val; - break; + break; } error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun, @@ -851,7 +851,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd, * won't work for SETALL since we can't copyin() more * data than the user specified as we may return a * spurious EFAULT. - * + * * Note that the number of semaphores in a set is * fixed for the life of that set. The only way that * the 'count' could change while are blocked in @@ -864,7 +864,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd, * */ count = semakptr->u.sem_nsems; - mtx_unlock(sema_mtxp); + mtx_unlock(sema_mtxp); array = malloc(sizeof(*array) * count, M_TEMP, M_WAITOK); mtx_lock(sema_mtxp); if ((error = semvalid(semid, rpr, semakptr)) != 0) @@ -917,7 +917,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd, * and why we require a userland buffer. */ count = semakptr->u.sem_nsems; - mtx_unlock(sema_mtxp); + mtx_unlock(sema_mtxp); array = malloc(sizeof(*array) * count, M_TEMP, M_WAITOK); error = copyin(arg->array, array, count * sizeof(*array)); mtx_lock(sema_mtxp); @@ -1838,7 +1838,7 @@ freebsd7___semctl(struct thread *td, struct freebsd7___semctl_args *uap) break; case SETVAL: semun.val = arg.val; - break; + break; } error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun, @@ -1909,7 +1909,7 @@ freebsd7_freebsd32_semctl(struct thread *td, case SETALL: error = copyin(uap->arg, &arg, sizeof(arg)); if (error) - return (error); + return (error); break; } @@ -1981,7 +1981,7 @@ freebsd32_semctl(struct thread *td, struct freebsd32_semctl_args *uap) case SETALL: error = copyin(uap->arg, &arg, sizeof(arg)); if (error) - return (error); + return (error); break; } @@ -2007,7 +2007,7 @@ freebsd32_semctl(struct thread *td, struct freebsd32_semctl_args *uap) break; case SETVAL: semun.val = arg.val; - break; + break; } error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206171940.25HJeQZA025812>