removed unused check
This commit is contained in:
@@ -95,7 +95,7 @@ static int npa_load_options(sc_context_t *ctx, struct npa_drv_data *drv_data)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; ctx->conf_blocks && ctx->conf_blocks[i] != NULL; i++) {
|
for (i = 0; ctx->conf_blocks; i++) {
|
||||||
found_blocks = scconf_find_blocks(ctx->conf, ctx->conf_blocks[i],
|
found_blocks = scconf_find_blocks(ctx->conf, ctx->conf_blocks[i],
|
||||||
"card_driver", "npa");
|
"card_driver", "npa");
|
||||||
if (!found_blocks)
|
if (!found_blocks)
|
||||||
|
|||||||
@@ -159,8 +159,7 @@ int print_avail(int verbose)
|
|||||||
|
|
||||||
r = list_readers(ctx);
|
r = list_readers(ctx);
|
||||||
|
|
||||||
if (ctx)
|
sc_release_context(ctx);
|
||||||
sc_release_context(ctx);
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user