aboutsummaryrefslogtreecommitdiff
path: root/libcacard/card_7816.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-05-08 21:17:38 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2014-05-26 10:41:22 +0400
commit1687a089f103f9b7a1b4a1555068054cb46ee9e9 (patch)
tree951e91aa9623aacb4f4f88480ad374826015baae /libcacard/card_7816.c
parent116d55460186d8568428072a5bbc355fb0129fce (diff)
libcacard: remove useless initializers
libcacard has many functions which initializes local variables at declaration time, which are always assigned some values later (often right after declaration). Clean up these initializers. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard/card_7816.c')
-rw-r--r--libcacard/card_7816.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c
index bca8c4adf8..a54f880390 100644
--- a/libcacard/card_7816.c
+++ b/libcacard/card_7816.c
@@ -416,7 +416,7 @@ VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_ERROR_GENERAL)
VCardResponse *
vcard_make_response(vcard_7816_status_t status)
{
- VCardResponse *response = NULL;
+ VCardResponse *response;
switch (status) {
/* known 7816 response codes */
@@ -543,9 +543,8 @@ vcard_make_response(vcard_7816_status_t status)
return VCARD_RESPONSE_GET_STATIC(
VCARD7816_STATUS_EXC_ERROR_MEMORY_FAILURE);
}
+ return response;
}
- assert(response);
- return response;
}
/*