mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
udev-builtin-blkid: use -errno not -1 as error code
The code that calls this function doesn't care, but it looks bad.
This commit is contained in:
parent
b382db9f3b
commit
dd7e1d6298
@ -193,7 +193,7 @@ static int probe_superblocks(blkid_probe pr) {
|
||||
int rc;
|
||||
|
||||
if (fstat(blkid_probe_get_fd(pr), &st))
|
||||
return -1;
|
||||
return -errno;
|
||||
|
||||
blkid_probe_enable_partitions(pr, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user