Skip to content
Commit 3ad0062c authored by Sudeep Holla's avatar Sudeep Holla Committed by Deepak Kumar Mishra
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.

Suggested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Ionela Voinescu's avatarIonela Voinescu <ionela.voinescu@arm.com>
Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
parent 218eda43
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