1
0
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:
Zdenek Kabelac 2014-08-29 11:51:53 +02:00
parent 19375e4fca
commit 2a0ec5d396
3 changed files with 7 additions and 7 deletions

View File

@ -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" },
};

View File

@ -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!

View File

@ -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" },