Skip to content
Commit b55eb03e authored by Leandro Pereira's avatar Leandro Pereira Committed by Andrew Boie
Browse files

kernel: device: Only compare strings if pointer comparison fails



Split the search into two loops: in the common scenario, where device
names are stored in ROM (and are referenced by the user with CONFIG_*
macros), only cheap pointer comparisons will be performed.

Reserve string comparisons for a fallback second pass.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 1bda83af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment