aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/westbridge/astoria/api/src/cyasusb.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-10-26 12:25:30 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-09 14:05:22 -0800
commit61241d97db02559bd83d21ffa783ab327945b925 (patch)
tree99e1a5d33d9aa2bf2287a8682084554ca7c513f8 /drivers/staging/westbridge/astoria/api/src/cyasusb.c
parent22b4dc5917a2644001e449b238ac18fb182b27fc (diff)
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>
Diffstat (limited to 'drivers/staging/westbridge/astoria/api/src/cyasusb.c')
-rw-r--r--drivers/staging/westbridge/astoria/api/src/cyasusb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/westbridge/astoria/api/src/cyasusb.c b/drivers/staging/westbridge/astoria/api/src/cyasusb.c
index 5a219701206..7777d9a60a5 100644
--- a/drivers/staging/westbridge/astoria/api/src/cyasusb.c
+++ b/drivers/staging/westbridge/astoria/api/src/cyasusb.c
@@ -1417,7 +1417,6 @@ cy_as_usb_set_enum_config(cy_as_device_handle handle,
*/
bus_mask = 0;
media_mask = 0;
- media_mask = 0;
for (bus = 0; bus < CY_AS_MAX_BUSES; bus++) {
for (device = 0; device < CY_AS_MAX_STORAGE_DEVICES; device++) {
if (config_p->devices_to_enumerate[bus][device] ==