Make vfs_getopts() set *error to ENOENT if the option wasn't found, so that
consumers don't have to check for both error and the return value (some of them actually don't do it). MFC After: 1 week
This commit is contained in:
parent
5033133005
commit
38cc2a5caa
@ -1798,6 +1798,7 @@ vfs_getopts(struct vfsoptlist *opts, const char *name, int *error)
|
||||
}
|
||||
return (opt->value);
|
||||
}
|
||||
*error = ENOENT;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user