1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: internal error for impossible path

Add 'default' path for impossible execution code path.
This commit is contained in:
Zdenek Kabelac 2014-05-23 23:53:04 +02:00
parent 965592340d
commit 49521f4e56

View File

@ -60,7 +60,7 @@ typedef enum {
static uint64_t _v1_sb_offset(uint64_t size, md_minor_version_t minor_version)
{
uint64_t uninitialized_var(sb_offset);
uint64_t sb_offset;
switch(minor_version) {
case MD_MINOR_V0:
@ -72,6 +72,10 @@ static uint64_t _v1_sb_offset(uint64_t size, md_minor_version_t minor_version)
case MD_MINOR_V2:
sb_offset = 4 * 2;
break;
default:
log_warn(INTERNAL_ERROR "WARNING: Unknown minor version %d.",
minor_version);
return 0;
}
sb_offset <<= SECTOR_SHIFT;