static int foreach_device_config(int type, int (*func)(const char *cmdline))

{

    struct device_config *conf;

    int rc;



    TAILQ_FOREACH(conf, &device_configs, next) {

        if (conf->type != type)

            continue;

        rc = func(conf->cmdline);

        if (0 != rc)

            return rc;

    }

    return 0;

}

static int foreach_device_config(int type, int (*func)(const char *cmdline))

{

    struct device_config *conf;

    int rc;



    TAILQ_FOREACH(conf, &device_configs, next) {

        if (conf->type != type)

            continue;

        rc = func(conf->cmdline);

        if (0 != rc)

            return rc;

    }

    return 0;

}

static int FUNC_0(int VAR_0, int (*VAR_1)(const char *VAR_2))

{

    struct device_config *VAR_3;

    int VAR_4;



    TAILQ_FOREACH(VAR_3, &device_configs, next) {

        if (VAR_3->VAR_0 != VAR_0)

            continue;

        VAR_4 = VAR_1(VAR_3->VAR_2);

        if (0 != VAR_4)

            return VAR_4;

    }

    return 0;

}

static int FUNC_0(int VAR_0, int (*VAR_1)(const char *VAR_2))
{ struct device_config *VAR_3; int VAR_4; TAILQ_FOREACH(VAR_3, &device_configs, next) { if (VAR_3->VAR_0 != VAR_0)
continue; VAR_4 = VAR_1(VAR_3->VAR_2); if (0 != VAR_4)
return VAR_4; } return 0; }