https://github.com/torvalds/linux
Revision f2543790875b088e2a58aa12ee1ac20a75d6126d authored by Julia Lawall on 26 October 2010, 10:25:43 UTC, committed by Jeff Garzik on 12 November 2010, 22:10:55 UTC
Delete successive assignments to the same location.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent f60215a
History
Tip revision: f2543790875b088e2a58aa12ee1ac20a75d6126d authored by Julia Lawall on 26 October 2010, 10:25:43 UTC
drivers/ata/pata_octeon_cf.c: delete double assignment
Tip revision: f254379
File Mode Size
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 5.1 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 30.3 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.8 KB
namespace.c -rw-r--r-- 3.3 KB
sem.c -rw-r--r-- 40.3 KB
shm.c -rw-r--r-- 26.5 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 22.9 KB
util.h -rw-r--r-- 5.2 KB

back to top