[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 2 of 10] LVM: make log_area a list



On Thu, Oct 08, 2009 at 04:18:36PM -0500, Jon Brassow wrote:
> +	int skip = 0;

> +				dm_list_iterate_items(aa, &ah->log_areas)
> +					if (pvm->pv == aa->pv)
> +						skip = 1;
> +				if (skip) {
> +					skip = 0;
> +					continue;
> +				}

If 'skip' is just to break out of nested loops, please use something
like 'goto next_pv' instead.

Alasdair


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]