Files
linux/drivers
Julia Lawall da6801e38b i2c-s3c2410: Correct use of ! and &
In commit e6bafba5b4, a bug was fixed that
involved converting !x & y to !(x & y).  The code below shows the same
pattern, and thus should perhaps be fixed in the same way.  In particular,
the result of !readl(i2c->regs + S3C2410_IICCON) & S3C2410_IICCON_IRQEN is
always 0.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@ expression E; constant C; @@
(
  !E & !C
|
- !E & C
+ !(E & C)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2008-10-30 15:55:47 +01:00
..
…
…
2008-10-21 07:48:21 -04:00
2008-10-27 08:39:52 -07:00
…
…
2008-10-20 08:52:40 -07:00
…
2008-10-26 10:27:01 +01:00
2008-10-22 01:19:39 +02:00
2008-10-30 15:55:47 +01:00
2008-10-26 09:35:05 -07:00
…
…
2008-10-21 07:48:33 -04:00
2008-10-23 00:43:47 -04:00
2008-10-21 07:48:37 -04:00
2008-10-26 23:09:27 -07:00
2008-10-21 15:49:55 +11:00
2008-10-25 04:07:14 -04:00
2008-10-23 00:11:07 -04:00
…
2008-10-23 09:35:18 -07:00
…
…
…
…
…
2008-10-20 08:52:36 -07:00
2008-10-23 09:19:47 -07:00