Skip to content

Commit 2037284

Browse files
committed
drivers : remove #if HAVE_DRIVERS conditional
if no drivers were compiled, the for() loop can safely remain.
1 parent 22ee2a3 commit 2037284

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/drivers.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
*/
2222

23-
#include <config.h>
2423
#include <glib.h>
2524
#include <libsigrok/libsigrok.h>
2625
#include "libsigrok-internal.h"
@@ -60,10 +59,8 @@ SR_API void sr_drivers_init(struct sr_context *ctx)
6059
GArray *array;
6160

6261
array = g_array_new(TRUE, FALSE, sizeof(struct sr_dev_driver *));
63-
#ifdef HAVE_DRIVERS
6462
for (struct device_node *cur = devlist_head; cur; cur = cur->next) {
6563
g_array_append_val(array, cur->dev);
6664
}
67-
#endif
6865
ctx->driver_list = (struct sr_dev_driver **)g_array_free(array, FALSE);
6966
}

0 commit comments

Comments
 (0)