Remove second (redundant) assignment to fdata->cum_bytes
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Mon, 21 Sep 2009 17:38:10 +0000 (17:38 -0000)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Mon, 21 Sep 2009 17:38:10 +0000 (17:38 -0000)
svn path=/trunk/; revision=30046

file.c

diff --git a/file.c b/file.c
index b603200bbed85ffd457eb39b3b7f0393c394d8d7..7007ad6e46f0ee110a5c726810ace940f46f70d1 100644 (file)
--- a/file.c
+++ b/file.c
@@ -2413,10 +2413,8 @@ ref_time_packets(capture_file *cf)
   cum_bytes = 0;
 
   for (fdata = cf->plist; fdata != NULL; fdata = fdata->next) {
-
-    fdata->cum_bytes  = cum_bytes + fdata->pkt_len;
     /* just add some value here until we know if it is being displayed or not */
-    fdata->cum_bytes  = cum_bytes + fdata->pkt_len;
+    fdata->cum_bytes = cum_bytes + fdata->pkt_len;
 
     /* If we don't have the time stamp of the first packet in the
      capture, it's because this is the first packet.  Save the time