alistair23-linux/drivers/staging/rts5208
Tobias Nießen 321cab4b5e 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>
2019-07-01 09:05:21 +02:00
..
general.c
general.h
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
ms.c
ms.h
rtsx.c
rtsx.h
rtsx_card.c
rtsx_card.h
rtsx_chip.c staging: rts5208: Remove negations 2019-05-30 14:13:45 -07:00
rtsx_chip.h staging: rts5208: correction in spelling 2019-03-24 10:06:36 +01:00
rtsx_scsi.c
rtsx_scsi.h
rtsx_sys.h
rtsx_transport.c
rtsx_transport.h
sd.c staging: rts5208: Rewrite redundant if statement to improve code style 2019-07-01 09:05:21 +02:00
sd.h staging: rts5208: Remove function soft_reset_sd_card() 2019-06-20 14:45:03 +02:00
spi.c
spi.h
TODO staging: Add missing newline at end of file 2019-06-18 08:59:40 +02:00
xd.c staging: rts5208: Simplify boolean expression to improve code style 2019-07-01 09:05:21 +02:00
xd.h