From: Jaroslav Kysela Date: Wed, 4 Jun 2014 07:31:22 +0000 (+0200) Subject: capmt: small cosmetic optimization X-Git-Tag: v4.1~1970 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16b963aeebf83316102a0177b3d9af3e42d999d5;p=thirdparty%2Ftvheadend.git capmt: small cosmetic optimization --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index c8f17dfd2..1fab551be 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)) {