void *target = NULL;
uint64_t target_start, target_length, start, length;
char *target_name, *target_params;
- const char *dev_name;
+ const char *devname;
if (seg_status) {
dmtask = DM_DEVICE_STATUS;
return_0;
if (name_check && dminfo->exists &&
- (dev_name = dm_task_get_name(dmt)) &&
- (strcmp(name_check, dev_name) != 0))
+ (devname = dm_task_get_name(dmt)) &&
+ (strcmp(name_check, devname) != 0))
dminfo->exists = 0; /* mismatching name -> device does not exist */
if (with_read_ahead && dminfo->exists) {