Commit a23ded7
committed
boot-qemu.py: Use ternary operators in a couple of places
Clears up ruff warnings:
boot-qemu.py:636:9: SIM108 [*] Use ternary operator `qemu = "qemu-system-i386" if arch == "x86" else "qemu-system-x86_64"` instead of if-else-block
boot-qemu.py:651:9: SIM108 Use ternary operator `dtb_dir = "dts" if "boot" in str(kernel) else "dtbs"` instead of if-else-block
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent a7a1c4a commit a23ded7
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
| 636 | + | |
640 | 637 | | |
641 | 638 | | |
642 | 639 | | |
| |||
650 | 647 | | |
651 | 648 | | |
652 | 649 | | |
653 | | - | |
654 | | - | |
655 | | - | |
| 650 | + | |
656 | 651 | | |
657 | 652 | | |
658 | | - | |
659 | | - | |
| 653 | + | |
660 | 654 | | |
661 | 655 | | |
662 | 656 | | |
| |||
0 commit comments