From 16b963aeebf83316102a0177b3d9af3e42d999d5 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 4 Jun 2014 09:31:22 +0200 Subject: [PATCH] capmt: small cosmetic optimization --- src/descrambler/capmt.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index c8f17dfd..1fab551b 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -756,11 +756,8 @@ handle_ca0(capmt_t* capmt) { tvhlog(LOG_INFO, "capmt", "normal socket shutdown"); // we are not connected any more - set services as unavailable - LIST_FOREACH(ct, &capmt->capmt_services, ct_link) { - if (ct->td_keystate != DS_FORBIDDEN) { - ct->td_keystate = DS_FORBIDDEN; - } - } + LIST_FOREACH(ct, &capmt->capmt_services, ct_link) + ct->td_keystate = DS_FORBIDDEN; int still_left = 0; if (!capmt_oscam_new(capmt)) {