mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
cleanup: drop duplicate const
No need to specify 'const' twice in these cases.
This commit is contained in:
parent
19375e4fca
commit
2a0ec5d396
@ -335,7 +335,7 @@ static int _raid_target_present(struct cmd_context *cmd,
|
||||
uint32_t min;
|
||||
unsigned raid_feature;
|
||||
const char *feature;
|
||||
} const _features[] = {
|
||||
} _features[] = {
|
||||
{ 1, 3, RAID_FEATURE_RAID10, "raid10" },
|
||||
};
|
||||
|
||||
|
@ -54,11 +54,11 @@ enum {
|
||||
|
||||
static const uint64_t _zero64 = UINT64_C(0);
|
||||
static const uint64_t _one64 = UINT64_C(1);
|
||||
static const char const _str_zero[] = "0";
|
||||
static const char const _str_one[] = "1";
|
||||
static const char const _str_no[] = "no";
|
||||
static const char const _str_yes[] = "yes";
|
||||
static const char const _str_unknown[] = "unknown";
|
||||
static const char _str_zero[] = "0";
|
||||
static const char _str_one[] = "1";
|
||||
static const char _str_no[] = "no";
|
||||
static const char _str_yes[] = "yes";
|
||||
static const char _str_unknown[] = "unknown";
|
||||
|
||||
/*
|
||||
* 32 bit signed is casted to 64 bit unsigned in dm_report_field internally!
|
||||
|
@ -642,7 +642,7 @@ static int _thin_target_present(struct cmd_context *cmd,
|
||||
uint32_t min;
|
||||
unsigned thin_feature;
|
||||
const char *feature;
|
||||
} const _features[] = {
|
||||
} _features[] = {
|
||||
{ 1, 1, THIN_FEATURE_DISCARDS, "discards" },
|
||||
{ 1, 1, THIN_FEATURE_EXTERNAL_ORIGIN, "external_origin" },
|
||||
{ 1, 4, THIN_FEATURE_BLOCK_SIZE, "block_size" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user