diff options
| author | Sudeep Holla <[email protected]> | 2022-07-04 11:15:58 +0100 |
|---|---|---|
| committer | Sudeep Holla <[email protected]> | 2022-07-04 16:22:29 +0100 |
| commit | 9eb5e54f876dda1aae0aef10bdd61da4331509ba (patch) | |
| tree | 56ae2ad394ffabdee80fa6a2d11171c43c6b481f /drivers/fpga/fpga-bridge.c | |
| parent | 3f8283296b16c4e43fd79a5ac364ae8171fe1567 (diff) | |
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.
Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Andy Shevchenko <[email protected]>
Tested-by: Ionela Voinescu <[email protected]>
Tested-by: Conor Dooley <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions