Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at mac_lte_stat_dlg.c:251

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

alloc_mac_lte_ep

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/mac_lte_stat_dlg.c)expand/collapse
Show more  
 221  static mac_lte_ep_t* alloc_mac_lte_ep(struct mac_lte_tap_info *si, packet_info *pinfo _U_)
 222  {
 223      mac_lte_ep_t* ep;
 224      int n;
 225   
 226      if (!si) {
 227          return NULL;
 228      }
 229   
 230      if (!(ep = g_malloc(sizeof(mac_lte_ep_t)))) {
 231          return NULL;
 232      }
 233   
 234      /* Copy SI data into ep->stats */
 235      ep->stats.rnti = si->rnti;
 236   
 237      /* Counts for new UE are all 0 */
 238      ep->stats.UL_frames = 0;
 239      ep->stats.DL_frames = 0;
 240      ep->stats.UL_total_bytes = 0;
 241      ep->stats.DL_total_bytes = 0;
 242      ep->stats.UL_CRC_errors = 0;
 243      ep->stats.DL_CRC_errors = 0;
 244      ep->stats.UL_retx_frames = 0;
 245      ep->stats.DL_retx_frames = 0;
 246   
 247      for (n=0; n < 11; n++) {
 248          ep->stats.UL_sdus_for_lcid[n] = 0;
 249          ep->stats.UL_bytes_for_lcid[n] = 0;
 250      }
 251      ep->stats.DL_total_bytes = 0;
 252      for (n=0; n < 11; n++) {
 253          ep->stats.DL_sdus_for_lcid[n] = 0;
 254          ep->stats.DL_bytes_for_lcid[n] = 0;
 255      }
 256   
 257      ep->next = NULL;
 258   
 259      return ep;
 260  }
Show more  




Change Warning 4401.29556 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: