mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
b0ef3ed48e
If a variable has value 0, then there is no point in combining it with other things with |, as for any x, 0 | x is just x. The following semantic patch finds this problem. @@ expression x,e,e1; statement S; @@ if (x == 0) { <... when != x = e1 when != while(...) S when != for(...;...;...) S ( * x |= e | * x | e ) ...> } Signed-off-by: Jiayi Ye <yejiayily@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
general.c | ||
general.h | ||
Kconfig | ||
Makefile | ||
ms.c | ||
ms.h | ||
rtsx_card.c | ||
rtsx_card.h | ||
rtsx_chip.c | ||
rtsx_chip.h | ||
rtsx_scsi.c | ||
rtsx_scsi.h | ||
rtsx_sys.h | ||
rtsx_transport.c | ||
rtsx_transport.h | ||
rtsx.c | ||
rtsx.h | ||
sd.c | ||
sd.h | ||
spi.c | ||
spi.h | ||
TODO | ||
trace.h | ||
xd.c | ||
xd.h |