]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb_ca: fix typos and spacing
authorDamjan Marion <damarion@cisco.com>
Sat, 2 May 2015 23:35:08 +0000 (01:35 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 May 2015 07:11:55 +0000 (09:11 +0200)
src/input/mpegts/linuxdvb/linuxdvb_ca.c

index 8e27b067b812c28d340fa8d923845f4c3b0d720b..2963a812cf7a42a8990f936c16d0f9317fb8772b 100644 (file)
@@ -49,7 +49,7 @@ ca_slot_state2str(ca_slot_state_t v)
     case CA_SLOT_STATE_EMPTY:           return "slot empty";
     case CA_SLOT_STATE_MODULE_PRESENT:  return "module present";
     case CA_SLOT_STATE_MODULE_READY:    return "module ready";
-       };
+  };
   return "UNKNOWN";
 }
 
@@ -336,9 +336,10 @@ linuxdvb_ca_rm_enq_cb(void *arg, uint8_t slot_id, uint16_t session_num)
     tvhtrace("en50221", "rm enq callback received for slot %d", slot_id);
 
     if (en50221_app_rm_reply(lca->lca_rm_resource, session_num,
-         sizeof(resource_ids)/4, resource_ids)) {
-        tvherror("en50221", "failed to send rm reply to slot %u session %u",
-                 slot_id, session_num);
+        sizeof(resource_ids)/4, resource_ids))
+    {
+      tvherror("en50221", "failed to send rm reply to slot %u session %u",
+               slot_id, session_num);
     }
 
     return 0;
@@ -630,7 +631,7 @@ linuxdvb_ca_en50221_thread ( void *aux )
 
   lca->lca_tc = en50221_tl_new_tc(lca->lca_tl, slot_id);
 
-  while (tvheadend_running & lca->lca_en50221_thread_running) {
+  while (tvheadend_running && lca->lca_en50221_thread_running) {
         int error;
         if ((error = en50221_tl_poll(lca->lca_tl)) != 0) {
             if (error != lasterror) {
@@ -734,7 +735,7 @@ linuxdvb_ca_create
 
   gtimer_arm_ms(&lca->lca_monitor_timer, linuxdvb_ca_monitor, lca, 250);
 
-       return lca;
+  return lca;
 }
 
 void