diff options
author | Andy Shevchenko <[email protected]> | 2020-11-03 22:45:04 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2020-11-17 18:06:28 +0100 |
commit | 66f4fa32eb18af9a60bbda589ee239621a49bcc1 (patch) | |
tree | c4f7d8e522edd422692652fa853438ccea84744d /net/switchdev/switchdev.c | |
parent | 09162bc32c880a791c6c0668ce0745cf7958f576 (diff) |
resource: Simplify region_intersects() by reducing conditionals
Now we have for 'other' and 'type' variables
other type return
0 0 REGION_DISJOINT
0 x REGION_INTERSECTS
x 0 REGION_DISJOINT
x x REGION_MIXED
Obviously it's easier to check 'type' for 0 first instead of
currently checked 'other'.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Hanjun Guo <[email protected]>
Tested-by: Hanjun Guo <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions