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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user