1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Thin reindent code

Drop indention level
Add extra internal error.
This commit is contained in:
Zdenek Kabelac 2011-11-07 10:59:07 +00:00
parent 87371d48cc
commit 11721819a7

View File

@ -88,7 +88,9 @@ int attach_pool_message(struct lv_segment *seg, dm_thin_message_t type,
struct lv_thin_message *tmsg; struct lv_thin_message *tmsg;
dm_list_iterate_items(tmsg, &seg->thin_messages) { dm_list_iterate_items(tmsg, &seg->thin_messages) {
if (tmsg->type == type) { if (tmsg->type != type)
continue;
switch (tmsg->type) { switch (tmsg->type) {
case DM_THIN_MESSAGE_CREATE_SNAP: case DM_THIN_MESSAGE_CREATE_SNAP:
case DM_THIN_MESSAGE_CREATE_THIN: case DM_THIN_MESSAGE_CREATE_THIN:
@ -107,8 +109,8 @@ int attach_pool_message(struct lv_segment *seg, dm_thin_message_t type,
} }
break; break;
default: default:
break; log_error(INTERNAL_ERROR "Unsupported message type %u.", tmsg->type);
} return 0;
} }
} }