treewide: fix errno assignments

Do not set `errno` to a negative value.
This commit is contained in:
Barnabás Pőcze 2024-04-30 15:54:18 +02:00 committed by Wim Taymans
parent 1b115eaf31
commit f524271b81
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ struct spa_bt_quirks *spa_bt_quirks_create(const struct spa_dict *info, struct s
const char *str;
if (!info) {
errno = -EINVAL;
errno = EINVAL;
return NULL;
}

View file

@ -382,7 +382,7 @@ struct pw_memmap * pw_memblock_map(struct pw_memblock *block,
(int64_t) sb.st_size);
if (!valid) {
errno = -EINVAL;
errno = EINVAL;
return NULL;
}