No need to wrap pjdlog functions around with KEEP_ERRNO() macro.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2011-09-27 08:26:09 +00:00
parent 00bddd18b3
commit be1143efb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225786

View File

@ -293,8 +293,7 @@ hast_activemap_flush(struct hast_resource *res)
PJDLOG_ASSERT((size % res->hr_local_sectorsize) == 0);
if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) !=
(ssize_t)size) {
KEEP_ERRNO(pjdlog_errno(LOG_ERR,
"Unable to flush activemap to disk"));
pjdlog_errno(LOG_ERR, "Unable to flush activemap to disk");
return (-1);
}
return (0);