bench: Remove dead code
authorAlex Pyrgiotis <apyrgio@grnet.gr>
Mon, 3 Jun 2013 11:05:07 +0000 (14:05 +0300)
committerFilippos Giannakos <philipgian@grnet.gr>
Thu, 18 Jul 2013 10:02:48 +0000 (13:02 +0300)
xseg/peers/user/bench-xseg.c

index 7278e74..5cf0cd6 100644 (file)
@@ -327,17 +327,6 @@ int custom_peer_init(struct peerd *peer, int argc, char *argv[])
        if (init_timer(&prefs->rec_tm, INSANITY_ECCENTRIC))
                goto tm_fail;
 
-       if (prefs->rec_tm->insanity <= GET_FLAG(INSANITY, prefs->flags)) {
-               for (i = 0; i < peer->nr_ops; i++) {
-                       ts = malloc(sizeof(struct timespec));
-                       if (!ts) {
-                               XSEGLOG2(&lc, E, "Timespec allocation failed\n");
-                               goto tm_fail;
-                       }
-                       peer->peer_reqs[i].priv = ts;
-               }
-       }
-
        /*************************************\
         * Initialize the LFSR and global_id *
        \*************************************/