summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-03-31 12:39:15 +0300
committerMark Brown <broonie@kernel.org>2025-04-06 23:26:08 +0100
commit1f1d979fbf741c3608a344373f88444dc8749967 (patch)
tree54606d90b030859b18c495885a94ae926dbb5b20 /tools/perf/scripts/python/exported-sql-viewer.py
parentdd8a9807fa03666bff52cb28472fb227eaac36c9 (diff)
spi: Simplify conditionals in spi_set_cs()
First of all, the (foo && bar) || (!foo && !bar) when foo and bar are booleans is equivalent to (foo == bar). Second, reuse variable that holds already the calculation of the SPI CS mode to be active-high. No functional changes intended. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250331093915.4041600-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions