diff options
author | 2021-06-18 08:14:45 +0200 | |
---|---|---|
committer | 2021-06-18 13:10:01 +0200 | |
commit | 238d117d17516f92f5db958809ddec30731e9342 (patch) | |
tree | 37adb9999e9d9f780012dbf768b3050852faab0e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mxser: extract mxser_ioctl_op_mode (diff) | |
download | linux-dev-238d117d17516f92f5db958809ddec30731e9342.tar.xz linux-dev-238d117d17516f92f5db958809ddec30731e9342.zip |
mxser: simplify mxser_ioctl_op_mode
* ModeMask local array is just inverted OP_MODE_MASK shifted by shiftbit.
Drop this array and use the value directly.
* return from the if's true branch and drop 'else' branch by moving the
code completely outside the if.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-40-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions