removed unused check

This commit is contained in:
Frank Morgner
2015-01-25 03:31:03 +01:00
parent 27ef5d59d5
commit da025bf0bf
2 changed files with 2 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ static int npa_load_options(sc_context_t *ctx, struct npa_drv_data *drv_data)
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],
"card_driver", "npa");
if (!found_blocks)

View File

@@ -159,7 +159,6 @@ int print_avail(int verbose)
r = list_readers(ctx);
if (ctx)
sc_release_context(ctx);
return r;