]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: rmobile: Clean up rmobile_cpuinfo_idx()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 19 Aug 2023 14:39:13 +0000 (16:39 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 6 Sep 2023 17:47:44 +0000 (13:47 -0400)
commit96912a9c7ca5866dcfd9464640681338fc6a7927
tree65e9615d3a12c5a62fc5a8fd9f828a9001c00700
parentb53ab97150314674edc25508f4fc528be2baa73f
ARM: rmobile: Clean up rmobile_cpuinfo_idx()

Clean the function up a bit further. Return immediately on match
and return ARRAY_SIZE() - 1 on failure. Add proper comment in that
case.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
arch/arm/mach-rmobile/cpu_info.c