1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

remove unused variable

This commit is contained in:
Alasdair Kergon 2006-10-12 17:18:40 +00:00
parent eb1cf4ae7e
commit 1e2f720a76

View File

@ -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;
}