[PATCH] clk: tenstorrent: Assign .num before accessing .hws
Aamir Ahmed
elb12345 at hotmail.co.uk
Wed Sep 9 17:47:31 PDT 2026
On Tue, Sep 08, 2026 at 11:56:12AM +0200, Gustavo A. R. Silva wrote:
> Looks like variable num_clks can be removed entirely, and just do:
>
> clk_data->num = data->num;
Yes - it is only read once and data is const.
Thanks for reviewing, and thanks Anirudh for testing. For the redundant
variable, since this has a stable Cc, perhaps we can keep the diff
minimal here and I can send the cleanup as a follow-up once it lands?
Kind Regards
Aamir A.
More information about the linux-riscv
mailing list