]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/staging: delete double assignment
authorJulia Lawall <julia@diku.dk>
Tue, 26 Oct 2010 10:25:30 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Nov 2010 22:05:22 +0000 (14:05 -0800)
commit89927189199392b069a64fa51c7c2cbcea6bfe4e
tree99e1a5d33d9aa2bf2287a8682084554ca7c513f8
parentc53d7b4b4618a48a5c4db71fbe495d1353df853c
drivers/staging: delete double assignment

Delete successive assignments to the same location.  In three of the cases,
the two assignments are identical.  In the case of the file
rt2860/common/cmm_aes.c, the assigned variable i is never used, so both
assignments are dropped.

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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c
drivers/staging/hv/hv_utils.c
drivers/staging/rt2860/common/cmm_aes.c
drivers/staging/westbridge/astoria/api/src/cyasusb.c