Skip to content

Commit 944d3ae

Browse files
committed
Fix condition check for dmlist_push_back in configure_drivers function
1 parent f1978be commit 944d3ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dmdevfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ static int configure_drivers(dmfsi_context_t ctx, const char* driver_name, const
844844
DMOD_LOG_ERROR("Failed to configure driver: %s\n", module_name);
845845
continue;
846846
}
847-
if(dmlist_push_back(ctx->drivers, driver_node) != 0)
847+
if(!dmlist_push_back(ctx->drivers, driver_node))
848848
{
849849
DMOD_LOG_ERROR("Failed to add driver to list: %s\n", module_name);
850850
Dmod_Free(driver_node);

0 commit comments

Comments
 (0)