pkcs11: excessif check of return value
tiny coding style fix
This commit is contained in:
parent
01ed00dd66
commit
98333e56df
|
@ -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");
|
||||
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue