udev: hwdb - exit if no database is available
This commit is contained in:
parent
f17491e27d
commit
3b0a5f2023
|
@ -277,6 +277,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
|
||||||
};
|
};
|
||||||
const char *subsys = NULL;
|
const char *subsys = NULL;
|
||||||
|
|
||||||
|
if (!trie.f)
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int option;
|
int option;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue