We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ee2a3 commit 2037284Copy full SHA for 2037284
src/drivers.c
@@ -20,7 +20,6 @@
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
23
-#include <config.h>
24
#include <glib.h>
25
#include <libsigrok/libsigrok.h>
26
#include "libsigrok-internal.h"
@@ -60,10 +59,8 @@ SR_API void sr_drivers_init(struct sr_context *ctx)
60
59
GArray *array;
61
62
array = g_array_new(TRUE, FALSE, sizeof(struct sr_dev_driver *));
63
-#ifdef HAVE_DRIVERS
64
for (struct device_node *cur = devlist_head; cur; cur = cur->next) {
65
g_array_append_val(array, cur->dev);
66
}
67
-#endif
68
ctx->driver_list = (struct sr_dev_driver **)g_array_free(array, FALSE);
69
0 commit comments