From: Jiayi Ye Date: Mon, 20 Oct 2014 07:01:08 +0000 (+0800) Subject: staging: rts5208: fix case of bitwise operator on zero in ms.c X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~1037 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ef3ed48eb8c1982c9d8b8063d856c83d116764;p=pandora-kernel.git 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 Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed