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

(cherry picked from commit 15bb0300eeca233827a6a13cd2ed883e0034979d)

Approved by: markj (mentor)

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
rG8bd4bf5db4c3: libthr: thr_attr.c: More style and clarity fixes
Branches
Unknown
Tags
Unknown