Skip to content

Commit

Permalink
drivers/staging/brcm80211/brcmfmac/dhd_linux.c: delete double assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent 61241d9 commit 4fd68ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2222,8 +2222,6 @@ int dhd_net_attach(dhd_pub_t *dhdp, int ifidx)
ASSERT(net);

ASSERT(!net->netdev_ops);
net->netdev_ops = &dhd_ops_virt;

net->netdev_ops = &dhd_ops_pri;

/*
Expand Down

0 comments on commit 4fd68ae

Please sign in to comment.