aboutsummaryrefslogtreecommitdiff
path: root/libcacard/vscclient.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-05-23 13:24:33 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2014-05-24 00:45:49 +0400
commitd357e3d9d24c8a9e99c994c3c1ee5acb32484a3d (patch)
tree5b803d09ce4c65fa5030701d9813bb1d4bf0f489 /libcacard/vscclient.c
parent5b9d313e3f820f50129887f0a59e88dc376a8b1a (diff)
libcacard/vscclient: Bury some dead code
Spotted by Coverity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alon Levy <alevy@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard/vscclient.c')
-rw-r--r--libcacard/vscclient.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c
index 3477ab3e1b..29f4958089 100644
--- a/libcacard/vscclient.c
+++ b/libcacard/vscclient.c
@@ -502,8 +502,7 @@ do_command(GIOChannel *source,
if (reader != NULL) {
error = vcard_emul_force_card_insert(reader);
printf("insert %s, returned %d\n",
- reader ? vreader_get_name(reader)
- : "invalid reader", error);
+ vreader_get_name(reader), error);
} else {
printf("no reader by id %u found\n", reader_id);
}
@@ -515,8 +514,7 @@ do_command(GIOChannel *source,
if (reader != NULL) {
error = vcard_emul_force_card_remove(reader);
printf("remove %s, returned %d\n",
- reader ? vreader_get_name(reader)
- : "invalid reader", error);
+ vreader_get_name(reader), error);
} else {
printf("no reader by id %u found\n", reader_id);
}