pkcs11: excessif check of return value

tiny coding style fix
This commit is contained in:
Viktor Tarasov 2013-12-01 12:12:32 +01:00
parent 01ed00dd66
commit 98333e56df
2 changed files with 1 additions and 6 deletions

View File

@ -1660,10 +1660,6 @@ pkcs15_initialize(struct sc_pkcs11_slot *slot, void *ptr,
args.label = (const char *) pLabel;
rv = sc_card_ctl(p11card->card, SC_CARDCTL_PKCS11_INIT_TOKEN, &args);
if (rv == SC_ERROR_NOT_SUPPORTED)
return CKR_FUNCTION_NOT_SUPPORTED;
if (rv < 0)
return sc_to_cryptoki_error(rv, "C_InitToken");

View File

@ -112,8 +112,7 @@ static CK_RV sc_to_cryptoki_error_common(int rc)
CK_RV sc_to_cryptoki_error(int rc, const char *ctx)
{
if (ctx)
{
if (ctx) {
int ii;
for (ii = 0; sc_to_cryptoki_error_map[ii].context; ii++) {