[dm-devel] [PATCH 03/10] dm-table: Check block devices zone model compatibility

Bart Van Assche Bart.VanAssche at sandisk.com
Sat Apr 29 03:15:28 UTC 2017


On Fri, 2017-04-21 at 12:55 +0900, damien.lemoal at wdc.com wrote:
> [ ... ]
> +static int validate_hardware_zone_model(struct dm_table *table,
> +					struct queue_limits *limits)
> +{
> +	[ ... ]
> +	unsigned int i = 0;
> +	[ ... ]
> +	while (i < num_targets) {
> +             [ ... ]
> +		i++;
> +	}

Hello Damien,

A minor comment: maybe it's more appropriate to implement this loop as a
for-loop?

Thanks,

Bart.




More information about the dm-devel mailing list