All of lore.kernel.org
 help / color / mirror / Atom feed
* LVM2/lib/misc timestamp.c
@ 2006-10-12 17:18 agk
  0 siblings, 0 replies; only message in thread
From: agk @ 2006-10-12 17:18 UTC (permalink / raw)
  To: lvm-devel

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

--- LVM2/lib/misc/timestamp.c	2006/09/30 20:02:02	1.1
+++ LVM2/lib/misc/timestamp.c	2006/10/12 17:18:40	1.2
@@ -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;
 	}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-12 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12 17:18 LVM2/lib/misc timestamp.c agk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.