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 7e26fa57e5
commit d80989ab56
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,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

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