diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-05-15 14:02:33 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-05-15 14:02:33 -0700 |
commit | ce7cd9fb0611eb3ddf74707268d82005161ffb99 (patch) | |
tree | e2303a9ee5f51a0b0a5266fb332e4fd94dad4fea | |
parent | 2fa20fe9fc4a9e986667d35d3cb2b40d89c9ad9b (diff) | |
download | bluez-ce7cd9fb0611eb3ddf74707268d82005161ffb99.tar.gz |
plugin: Treat -ENOTSUP as -ENOSYS
If plugin .init returns -ENOTSUP treat it as the system doesn't
support the driver since that is the error returned by
btd_profile_register when experimental is disabled.
-rw-r--r-- | src/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index dd7b406c8..80990f8c3 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -186,7 +186,7 @@ start: err = plugin->desc->init(); if (err < 0) { - if (err == -ENOSYS) + if (err == -ENOSYS || err == -ENOTSUP) warn("System does not support %s plugin", plugin->desc->name); else |