]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: small cosmetic optimization
authorJaroslav Kysela <perex@perex.cz>
Wed, 4 Jun 2014 07:31:22 +0000 (09:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 12:02:35 +0000 (14:02 +0200)
src/descrambler/capmt.c

index c8f17dfd2daded91fe15b00a5ba4fb6f56fc3722..1fab551be2338cde699353d1bc49d832279bc227 100644 (file)
@@ -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)) {