Skip to content
Commit 321cab4b authored by Tobias Nießen's avatar Tobias Nießen Committed by Greg Kroah-Hartman
Browse files

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: default avatarTobias Nießen <tobias.niessen@stud.uni-hannover.de>
Signed-off-by: default avatarSabrina Gaube <sabrina-gaube@web.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 34a49d9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment