Staging: wlan-ng: Remove multiple assignments
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 13 Feb 2016 06:18:02 +0000 (11:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:34:08 +0000 (16:34 -0800)
commit0c42bc25ed916d0fba1205cbdf668c38717fca77
tree8fc4a2858b7e0568dcfa75464face06eefc99c26
parent12f2a7b900f0fa8e2f466630c8bc76444aaf9f68
Staging: wlan-ng: Remove multiple assignments

Remove multiple assignments by factorizing them.
Made a coccinelle script to match cases:
@@
identifier a,b;
constant c;
@@
-a=b=c;
+a=c;
+b=c;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211wep.c