1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-21 15:33:18 +03:00

cleanup: simplier code

Already know string is 'lvm-' so use name[3].
This commit is contained in:
Zdenek Kabelac
2017-02-18 19:46:22 +01:00
parent 2260c6d1e6
commit 13dd1ca757

View File

@@ -2635,8 +2635,7 @@ void print_man(char *name, char *des_file, int include_primary, int include_seco
int i;
if (!strncmp(name, "lvm-", 4)) {
char *space = strchr(lvmname, '-');
*space = ' ';
name[3] = ' ';
name += 4;
}