Re: [PATCH] dm zoned: tidy up the variables in dmz_lookup_secondary_sb()
From: Damien Le Moal
Date: Thu Dec 03 2026 - 01:43:14 EST
On 2026/12/03 1:31, Yingjie Wang wrote:
> Declare i together with nr_zones, and set nr_zones with an if statement
> after the declarations instead of a conditional expression in its
> initializer.
>
> No functional change.
>
> Suggested-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
> Link: https://lore.kernel.org/dm-devel/17f0e9c6-856b-4814-81c0-388743e0fd58@xxxxxxxxxx/
> Signed-off-by: Yingjie Wang <x-professor@xxxxxxxxxxx>
Looks much better.
Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
And yes, squashing this in the original patch is OK I think.
--
Damien Le Moal
Western Digital Research