git: f8660ea4b14d - main - libthr: Trim trailing whitespaces in pthread_attr_affinity.

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Sun, 29 Jan 2023 12:38:24 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=f8660ea4b14d8ef8beefd4699d79098c738dddd8

commit f8660ea4b14d8ef8beefd4699d79098c738dddd8
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-01-29 12:38:04 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-01-29 12:38:04 +0000

    libthr: Trim trailing whitespaces in pthread_attr_affinity.
    
    MFC after:      1 week
---
 lib/libthr/thread/thr_attr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/libthr/thread/thr_attr.c b/lib/libthr/thread/thr_attr.c
index 5a06f793f4f8..a5957fa407a8 100644
--- a/lib/libthr/thread/thr_attr.c
+++ b/lib/libthr/thread/thr_attr.c
@@ -629,7 +629,7 @@ _pthread_attr_setaffinity_np(pthread_attr_t *pattr, size_t cpusetsize,
 			return (0);
 		}
 		size_t kern_size = _get_kern_cpuset_size();
-		/* Kernel rejects small set, we check it here too. */ 
+		/* Kernel rejects small set, we check it here too. */
 		if (cpusetsize < kern_size)
 			return (ERANGE);
 		if (cpusetsize > kern_size) {
@@ -663,7 +663,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize,
 	if (pattr == NULL || (attr = (*pattr)) == NULL)
 		ret = EINVAL;
 	else {
-		/* Kernel rejects small set, we check it here too. */ 
+		/* Kernel rejects small set, we check it here too. */
 		size_t kern_size = _get_kern_cpuset_size();
 		if (cpusetsize < kern_size)
 			return (ERANGE);
@@ -673,7 +673,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize,
 		else
 			memset(cpusetp, -1, kern_size);
 		if (cpusetsize > kern_size)
-			memset(((char *)cpusetp) + kern_size, 0, 
+			memset(((char *)cpusetp) + kern_size, 0,
 				cpusetsize - kern_size);
 	}
 	return (ret);