summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2026-04-03 11:41:29 +0300
committerSudeep Holla <sudeep.holla@kernel.org>2026-05-05 17:45:58 +0300
commit6991e5de9709b0df1f37029e5d0ada6df69aea99 (patch)
tree2a6d33c5779683ab9216f82fdfd0078bbca08b00 /include/linux
parent0c6eb5d019c1e4b9cfcfc47000e08858bbbc5e52 (diff)
downloadlinux-6991e5de9709b0df1f37029e5d0ada6df69aea99.tar.xz
firmware: arm_scmi: quirk: Improve quirk range parsing
When a range contains only an end ("-X"), the number string is parsed twice, as both "sep == first" and "sep != last" are true. Fix this by dropping the superfluous number parsing for "sep == first". This does have a harmless functional impact for the unbounded range: "-" is now accepted, while it was rejected before. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/fe257b3b7b7b5c17fd0e5727bb9746c731bd7e3c.1775205358.git.geert+renesas@glider.be (sudeep.holla: Initialise ret to 0 as it will be uninitialise for "-" range) Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions