]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: quirk: Simplify quirk table iteration
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 3 Apr 2026 08:41:30 +0000 (10:41 +0200)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 5 May 2026 14:45:59 +0000 (15:45 +0100)
commit5be6732f820c97ab2ab20a44770a9f85fa5c7099
treec548b930ab0530a1817b4a9cc0937d632fb4477b
parent6991e5de9709b0df1f37029e5d0ada6df69aea99
firmware: arm_scmi: quirk: Simplify quirk table iteration

The current table entry is assigned in both the init and loop
expressions of the for-statement.  Merge this into a single assignment
in the conditional expression, to simplify the code.

While at it, make the loop counter unsigned and loop-local.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/8577f4b103cf04420c3b67dcaad528daff867287.1775205358.git.geert+renesas@glider.be
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/quirks.c