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
..
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
TODO staging: Add missing newline at end of file 2019-06-18 08:59:40 +02:00
general.c Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
general.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
ms.c staging: rts5208: Add a check for ms_read_extra_data 2019-01-07 08:56:07 +01:00
ms.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx.c Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
rtsx.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_card.c Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_card.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
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 Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_scsi.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_sys.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_transport.c Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
rtsx_transport.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
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 Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
spi.h Staging: rts5208: Add SPDX license tags 2018-11-05 14:16:33 +01:00
xd.c staging: rts5208: Simplify boolean expression to improve code style 2019-07-01 09:05:21 +02:00
xd.h Staging: rts5208: Capitalise preprocessor variable names 2018-11-05 14:16:33 +01:00