Commit 60d6f01
drm/radeon/dpm: Remove redundant ternary operators
For ternary operators in the form of "a ? true : false", if 'a' itself
returns a boolean result, the ternary operator can be omitted. Remove
redundant ternary operators to clean up the code.
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 7a50377 commit 60d6f01
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
2460 | | - | |
| 2460 | + | |
2461 | 2461 | | |
2462 | 2462 | | |
2463 | 2463 | | |
| |||
3438 | 3438 | | |
3439 | 3439 | | |
3440 | 3440 | | |
3441 | | - | |
| 3441 | + | |
3442 | 3442 | | |
3443 | 3443 | | |
3444 | 3444 | | |
| |||
3451 | 3451 | | |
3452 | 3452 | | |
3453 | 3453 | | |
3454 | | - | |
| 3454 | + | |
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
| |||
4489 | 4489 | | |
4490 | 4490 | | |
4491 | 4491 | | |
4492 | | - | |
| 4492 | + | |
4493 | 4493 | | |
4494 | 4494 | | |
4495 | 4495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3397 | 3397 | | |
3398 | 3398 | | |
3399 | 3399 | | |
3400 | | - | |
| 3400 | + | |
3401 | 3401 | | |
3402 | 3402 | | |
3403 | 3403 | | |
| |||
0 commit comments