From 1e2f720a768d6d3f3412497054f4457bfee98fd4 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 12 Oct 2006 17:18:40 +0000 Subject: [PATCH] remove unused variable --- lib/misc/timestamp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/misc/timestamp.c b/lib/misc/timestamp.c index 2e75b0b6f..8e1bb5705 100644 --- a/lib/misc/timestamp.c +++ b/lib/misc/timestamp.c @@ -39,7 +39,6 @@ struct timestamp { struct timestamp *get_timestamp(void) { struct timestamp *ts = NULL; - int err = 0; if (!(ts = dm_malloc(sizeof(*ts)))) return_NULL; @@ -89,12 +88,11 @@ struct timestamp { struct timestamp *get_timestamp(void) { struct timestamp *ts = NULL; - int err = 0; if (!(ts = dm_malloc(sizeof(*ts)))) return_NULL; - if ((err = gettimeofday(&ts->t, NULL))) { + if (gettimeofday(&ts->t, NULL)) { log_sys_error("gettimeofday", "get_timestamp"); return NULL; }