mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-08 08:21:04 -04:00
treewide: fix errno assignments
Do not set `errno` to a negative value.
This commit is contained in:
parent
7e26fa57e5
commit
d80989ab56
2 changed files with 2 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ struct spa_bt_quirks *spa_bt_quirks_create(const struct spa_dict *info, struct s
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
if (!info) {
|
if (!info) {
|
||||||
errno = -EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -413,7 +413,7 @@ struct pw_memmap * pw_memblock_map(struct pw_memblock *block,
|
||||||
(int64_t) sb.st_size);
|
(int64_t) sb.st_size);
|
||||||
|
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
errno = -EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue