linux/drivers/staging/rts5208
Jiayi Ye b0ef3ed48e staging: rts5208: fix case of bitwise operator on zero in ms.c
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>
2014-10-23 14:10:49 +08:00
..
general.c staging: rts5208: add new line after declarations 2014-09-23 13:22:25 -07:00
general.h
Kconfig Staging: rts5208: Remove CONFIG_RTS5208_DEBUG option 2014-08-16 12:23:13 -07:00
Makefile
ms.c staging: rts5208: fix case of bitwise operator on zero in ms.c 2014-10-23 14:10:49 +08:00
ms.h
rtsx_card.c Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
rtsx_card.h staging: rts5208: remove unnecessary else 2014-10-02 10:07:04 -07:00
rtsx_chip.c staging: rts5208: use ternary operators to reduce indentation level 2014-10-20 10:29:27 +08:00
rtsx_chip.h Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
rtsx_scsi.c staging: rts5208: Delete braces are not necessary 2014-10-20 10:29:07 +08:00
rtsx_scsi.h Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
rtsx_sys.h
rtsx_transport.c Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
rtsx_transport.h
rtsx.c staging: rts5208: Remove unnecessary else in rtsx_card.h 2014-09-28 22:49:25 -04:00
rtsx.h Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
sd.c Staging: rts5208: Fix checkpatch warning: Missing blank line 2014-09-23 13:22:25 -07:00
sd.h
spi.c Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
spi.h
TODO
trace.h Staging: rts5208: Use dev_dbg and print_hex_dump_bytes to dump memory 2014-08-16 12:23:13 -07:00
xd.c Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
xd.h