mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Remove duplicit test
When it's space it's also not a '\0'.
This commit is contained in:
parent
75fad6eaa7
commit
69ad7c1aff
@ -221,7 +221,7 @@ static int _scan_proc_dev(const char *proc, const struct dm_config_node *cn)
|
||||
|
||||
while (fgets(line, 80, pd) != NULL) {
|
||||
i = 0;
|
||||
while (line[i] == ' ' && line[i] != '\0')
|
||||
while (line[i] == ' ')
|
||||
i++;
|
||||
|
||||
/* If it's not a number it may be name of section */
|
||||
@ -238,7 +238,7 @@ static int _scan_proc_dev(const char *proc, const struct dm_config_node *cn)
|
||||
/* Find the start of the device major name */
|
||||
while (line[i] != ' ' && line[i] != '\0')
|
||||
i++;
|
||||
while (line[i] == ' ' && line[i] != '\0')
|
||||
while (line[i] == ' ')
|
||||
i++;
|
||||
|
||||
/* Look for md device */
|
||||
|
Loading…
Reference in New Issue
Block a user