Re: [PATCH v2 2/6] t: harmonize t-reftable-stack.c with coding guidelines

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

 



On Fri, Aug 23, 2024 at 05:18:47PM +0530, Chandra Pratap wrote:
> @@ -1039,10 +1035,8 @@ static void t_reftable_stack_compaction_concurrent(void)
>  static void unclean_stack_close(struct reftable_stack *st)
>  {
>  	/* break abstraction boundary to simulate unclean shutdown. */
> -	int i = 0;
> -	for (; i < st->readers_len; i++) {
> +	for (int i = 0; i < st->readers_len; i++)

Nit: this should likely be `size_t i`. Not worth a reroll on its own
though.

Patrick




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux