1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: avoid double assign

Variable n1 is assigned without using n1 before.
This commit is contained in:
Zdenek Kabelac 2015-07-10 11:16:23 +02:00
parent a7101e7bfb
commit c45e6e3c78

View File

@ -2595,7 +2595,7 @@ static char *_get_date(char *str, struct tm *tm, time_range_t *range)
{
static const char incorrect_date_format_msg[] = "Incorrect date format.";
time_range_t tmp_range = RANGE_NONE;
long n1 = -1, n2 = -1, n3 = -1;
long n1, n2 = -1, n3 = -1;
char *s = str, *end;
size_t len = 0;
@ -2680,7 +2680,7 @@ static char *_get_time(char *str, struct tm *tm, time_range_t *range)
{
static const char incorrect_time_format_msg[] = "Incorrect time format.";
time_range_t tmp_range = RANGE_NONE;
long n1 = -1, n2 = -1, n3 = -1;
long n1, n2 = -1, n3 = -1;
char *s = str, *end;
size_t len = 0;
@ -2774,7 +2774,7 @@ static char *_get_time(char *str, struct tm *tm, time_range_t *range)
/* The offset is always an absolute offset against GMT! */
static char *_get_tz(char *str, int *tz_supplied, int *offset)
{
long n1 = -1, n2 = -1;
long n1, n2 = -1;
char *s = str, *end;
int sign = 1; /* +HH:MM by default */
size_t len = 0;