diff options
| author | Tobias Nießen <tobias.niessen@stud.uni-hannover.de> | 2019-06-26 17:28:57 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-01 10:05:21 +0300 |
| commit | 321cab4b5e56f2b5371da20de618c7c1a791ceb5 (patch) | |
| tree | 72304c91a427aa5a1a24767fad1f894fc9bdc952 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 34a49d9edf3af971867e3876de7dc9935d467f67 (diff) | |
| download | linux-321cab4b5e56f2b5371da20de618c7c1a791ceb5.tar.xz | |
staging: rts5208: Simplify boolean expression to improve code style
This bitwisen / boolean expression can be made more readable while
reducing the line lengths at the same time. This commit uses the
fact that
a & (b | c) == (b | c)
evaluates to true if and only if
(a & b) && (a & c)
is true. Since b and c are constants with relatively long names,
using the second form makes the code much more readable and shorter.
Signed-off-by: Tobias Nießen <tobias.niessen@stud.uni-hannover.de>
Signed-off-by: Sabrina Gaube <sabrina-gaube@web.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
