From bb1a128cfd10c595aa724f9c3afbce81987b12d0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 28 Jul 2014 12:59:39 +0200 Subject: [PATCH] capmt: a slight optimization - remove the key data --- src/descrambler/capmt.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 6da21a71..e60ce7a4 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -125,8 +125,6 @@ static pthread_cond_t capmt_config_changed; */ typedef struct ca_info { uint16_t seq; // sequence / service id number - uint8_t even[8]; - uint8_t odd[8]; } ca_info_t; /** @@ -1056,11 +1054,9 @@ capmt_analyze_cmd(capmt_t *capmt, int adapter, sbuf_t *sb, int offset) return; cai = &capmt->capmt_adapters[adapter].ca_info[index]; if (parity == 0) { - memcpy(cai->even, cw, 8); // even key - capmt_process_key(capmt, adapter, cai->seq, cai->even, empty, 1); + capmt_process_key(capmt, adapter, cai->seq, cw, empty, 1); } else if (parity == 1) { - memcpy(cai->odd, cw, 8); // odd key - capmt_process_key(capmt, adapter, cai->seq, empty, cai->odd, 1); + capmt_process_key(capmt, adapter, cai->seq, empty, cw, 1); } else tvhlog(LOG_ERR, "capmt", "Invalid parity %d in CA_SET_DESCR for adapter%d", parity, adapter);