From nobody Sat May 14 11:07:53 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 163F41AE16BF; Sat, 14 May 2022 11:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L0jRG03lsz3kny; Sat, 14 May 2022 11:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652526474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/9TDn+/P4H5yOYXkai6kQ3QWq6PFYSHXIMrMbLPFa/8=; b=BpULgvttHyouQK4QR/Pn3yqR7JoA9GZ7OqbyCaYTFguuhbX7a7J44Xrz05XrgZPZhdgLko /v9dSyAT01rdQ6sLJpzCyoayOeB/HNwxaWQK1w1ZP7Hm8DqPMjMP+YmCIsQbz2X378HVd3 ntCpE99xRsK3EW6nSRc4oBJS5fsSxygZCGI5FEgNQN5joSJoYaJoA5cLZ974N46tU0RRDY oxHM5FcLuWWjFhaW3WU+pliR9K1IwNUunlNuRUxTM0EyT5QqsEzJjYOyPVDOjG0uJEQL1n JLYwDHXPkIxqL2IyA8wNN5gaT+ZZVOXxeEpFr6eeWAUblN+sq575ReTZQTziGA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D64F61640B; Sat, 14 May 2022 11:07:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24EB7rBe062135; Sat, 14 May 2022 11:07:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24EB7rDE062134; Sat, 14 May 2022 11:07:53 GMT (envelope-from git) Date: Sat, 14 May 2022 11:07:53 GMT Message-Id: <202205141107.24EB7rDE062134@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: f0b0fdf15efe - main - sysvsem: Trim traiing whitespace List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0b0fdf15efee38ee6989ec2b1668f065704c7df Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652526474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/9TDn+/P4H5yOYXkai6kQ3QWq6PFYSHXIMrMbLPFa/8=; b=cg4/SRvqUvUqLBZejinwUbzBTTrsVji6hKpn+FNNCKEdr88yBVSn9EKwaR+muStkbtacbA 0YXUYuJMhH4haHRNnLQKM1fLF5StWKJl3gVBphvLhYP6nkvM7NTLLF021U+F79FN//fzbs ylKBEXZIp2gtbbhqXo7DqorDoRqO7T+jC5/noPdBMsqQE47YoEyieK9tjKsnFgKbyvm859 qVIEPbXKcRshJAHRZjKHIb9ci2y53RSe2T9xhhli2mNVkldE9o1zkSbG/7QHfBkJhfIvw4 Xm4VCXIVP78fyrnR4rcQm2g3N9FjE/xdOKZPF/ZFydfxDDq0wA91LaslThhbvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652526474; a=rsa-sha256; cv=none; b=kBdbaKTjnYeR/ltIkosIzYiL8to4FbHiAYZH+a5DxOeNFvyvrHH/XHSLDM3q3KC9sGRmUW VR3TOLq2wRF6YQ6zo6MPHC6jL6c/ulaVDCYTuknZKYanFKAfub3iwXiOr01L6XTqxULmul /NNoODMhdaJVZd2NawIJeq4O0YepUKDlNSd+2lnVn+ShQac2r3C1yX/aTpdR8wwf/eLAo4 wZrG4fZZ0fh5ScXYxpgtcjcpRr7E3+azfP45yWQ91jjOnysn0GovCwWMY0PxOuO2Uts9Na j8hkq8LYPDnyDYluKGNrM6cuE65rIs/b7BoJomssq45ulKPX03O3s4x1Ktv2uQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=f0b0fdf15efee38ee6989ec2b1668f065704c7df commit f0b0fdf15efee38ee6989ec2b1668f065704c7df Author: Dmitry Chagin AuthorDate: 2022-05-14 11:06:40 +0000 Commit: Dmitry Chagin CommitDate: 2022-05-14 11:06:40 +0000 sysvsem: Trim traiing whitespace MFC after: 2 weeks --- 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 d489821e983b..638681fc6dcd 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,