diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-06-18 08:14:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-18 13:10:01 +0200 |
commit | 238d117d17516f92f5db958809ddec30731e9342 (patch) | |
tree | 37adb9999e9d9f780012dbf768b3050852faab0e /lib/test_rhashtable.c | |
parent | 9fae5f857e124e843c7a41a04a49b3f9256a2d77 (diff) |
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 'lib/test_rhashtable.c')
0 files changed, 0 insertions, 0 deletions