diff options
author | Julia Lawall <julia@diku.dk> | 2010-10-26 06:25:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-09 17:05:22 -0500 |
commit | 4fd68ae1a558043a2cc4ea2faf7235e71c3241aa (patch) | |
tree | 1f9777d8deb680c76438951959cea39b25be7ccd | |
parent | 61241d97db02559bd83d21ffa783ab327945b925 (diff) |
drivers/staging/brcm80211/brcmfmac/dhd_linux.c: delete double assignment
Delete successive assignments to the same location. dhd_ops_virt contains
a subset of the definitions of dhd_ops_pri.
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>
-rw-r--r-- | drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c index bbbe7c5f7492..9335f02029aa 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c | |||
@@ -2222,8 +2222,6 @@ int dhd_net_attach(dhd_pub_t *dhdp, int ifidx) | |||
2222 | ASSERT(net); | 2222 | ASSERT(net); |
2223 | 2223 | ||
2224 | ASSERT(!net->netdev_ops); | 2224 | ASSERT(!net->netdev_ops); |
2225 | net->netdev_ops = &dhd_ops_virt; | ||
2226 | |||
2227 | net->netdev_ops = &dhd_ops_pri; | 2225 | net->netdev_ops = &dhd_ops_pri; |
2228 | 2226 | ||
2229 | /* | 2227 | /* |