Skip to content
Commit 1d1571ce authored by Sudeep Holla's avatar Sudeep Holla Committed by Ionela Voinescu
Browse files

arch_topology: Check for non-negative value rather than -1 for IDs validity



Instead of just comparing the cpu topology IDs with -1 to check their
validity, improve that by checking for a valid non-negative value.

Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
Suggested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
parent 8f1c3396
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment