Skip to contentSkip to conversation

LVM2/lib/misc timestamp.c

PATCH [email protected] 1 participant 1 message Oct 12, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2006-10-12 17:18:40

Modified files:
lib/misc : timestamp.c

Log message:
remove unused variable

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/timestamp.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2

lib/misc/timestamp.c +1 -3
@@ -39,7 +39,6 @@
 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 *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;
 	}