HomeFreeBSD

libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()

Description

libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()

Using calloc() instead of malloc() is useless here since the allocated
memory is to be wholly crushed by the memcpy() call that follows.

Suggested by: kib
Reviewed by: emaste, kib
Approved by: emaste (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43328

Details

Provenance
olceAuthored on Jan 4 2024, 3:20 PM
Reviewer
emaste
Differential Revision
D43328: libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()
Parents
rG4d312aa05141: libthr: thr_attr.c: More style and clarity fixes
Branches
Unknown
Tags
Unknown