Doesn't really affect logic, but Coverity reports this as dead-code, and
I figure it makes sense to be consistent about our use of HAVE_MEMFD.
CID:
1352045
/* For memfds, we keep the fd open until we pass it
* to the other PA endpoint over unix domain socket. */
- if (type == PA_MEM_TYPE_SHARED_MEMFD)
- m->fd = fd;
- else {
+ if (type != PA_MEM_TYPE_SHARED_MEMFD) {
pa_assert_se(pa_close(fd) == 0);
m->fd = -1;
}
+#if HAVE_MEMFD
+ else
+ m->fd = fd;
+#endif
return 0;