1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-06 00:58:48 +03:00

Move declaration of struct dm_info info to declaration block.

This commit is contained in:
Zdenek Kabelac 2010-03-24 11:36:48 +00:00
parent a6bc975a24
commit 08ebb57c9b

View File

@ -688,6 +688,7 @@ int dm_event_get_registered_device(struct dm_event_handler *dmevh, int next)
enum dm_event_mask reply_mask = 0;
struct dm_task *dmt = NULL;
struct dm_event_daemon_message msg = { 0, 0, NULL };
struct dm_info info;
if (!(dmt = _get_device_info(dmevh))) {
stack;
@ -746,7 +747,6 @@ int dm_event_get_registered_device(struct dm_event_handler *dmevh, int next)
goto fail;
}
struct dm_info info;
if (!dm_task_get_info(dmt, &info)) {
ret = -1;
goto fail;