Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88175
b: refs/heads/master
c: 439e238
h: refs/heads/master
i:
  88173: 5a2026e
  88171: f8375dd
  88167: ed526e6
  88159: e8684f2
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Apr 3, 2008
1 parent 01a11dc commit 50f9156
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af2681828af5f2b42e12e8b16ba0cf113cf486c8
refs/heads/master: 439e23857a21c3a953826eed23c818697a97de1a
10 changes: 5 additions & 5 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
/* Step 1: remove reference to ipv6 device from parent device.
Do not dev_put!
*/
if (how == 1) {
if (how) {
idev->dead = 1;

/* protected by rtnl_lock */
Expand Down Expand Up @@ -2501,12 +2501,12 @@ static int addrconf_ifdown(struct net_device *dev, int how)
write_lock_bh(&idev->lock);

/* Step 3: clear flags for stateless addrconf */
if (how != 1)
if (!how)
idev->if_flags &= ~(IF_RS_SENT|IF_RA_RCVD|IF_READY);

/* Step 4: clear address list */
#ifdef CONFIG_IPV6_PRIVACY
if (how == 1 && del_timer(&idev->regen_timer))
if (how && del_timer(&idev->regen_timer))
in6_dev_put(idev);

/* clear tempaddr list */
Expand Down Expand Up @@ -2543,7 +2543,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)

/* Step 5: Discard multicast list */

if (how == 1)
if (how)
ipv6_mc_destroy_dev(idev);
else
ipv6_mc_down(idev);
Expand All @@ -2552,7 +2552,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)

/* Shot the device (if unregistered) */

if (how == 1) {
if (how) {
addrconf_sysctl_unregister(idev);
neigh_parms_release(&nd_tbl, idev->nd_parms);
neigh_ifdown(&nd_tbl, dev);
Expand Down

0 comments on commit 50f9156

Please sign in to comment.