diff options
| author | Linus Torvalds <[email protected]> | 2011-07-22 14:43:13 -0700 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-07-22 14:43:13 -0700 | 
| commit | 951cc93a7493a81a47e20231441bc6cf17c98a37 (patch) | |
| tree | f53934f0f225e0215a85c8c59af4c6513e89e3f1 /net/lapb/lapb_iface.c | |
| parent | a7e1aabb28e8154ce987b622fd78d80a1ca39361 (diff) | |
| parent | 415b3334a21aa67806c52d1acf4e72e14f7f402f (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1287 commits)
  icmp: Fix regression in nexthop resolution during replies.
  net: Fix ppc64 BPF JIT dependencies.
  acenic: include NET_SKB_PAD headroom to incoming skbs
  ixgbe: convert to ndo_fix_features
  ixgbe: only enable WoL for magic packet by default
  ixgbe: remove ifdef check for non-existent define
  ixgbe: Pass staterr instead of re-reading status and error bits from descriptor
  ixgbe: Move interrupt related values out of ring and into q_vector
  ixgbe: add structure for containing RX/TX rings to q_vector
  ixgbe: inline the ixgbe_maybe_stop_tx function
  ixgbe: Update ATR to use recorded TX queues instead of CPU for routing
  igb: Fix for DH89xxCC near end loopback test
  e1000: always call e1000_check_for_link() on e1000_ce4100 MACs.
  netxen: add fw version compatibility check
  be2net: request native mode each time the card is reset
  ipv4: Constrain UFO fragment sizes to multiples of 8 bytes
  virtio_net: Fix panic in virtnet_remove
  ipv6: make fragment identifications less predictable
  ipv6: unshare inetpeers
  can: make function can_get_bittiming static
  ...
Diffstat (limited to 'net/lapb/lapb_iface.c')
| -rw-r--r-- | net/lapb/lapb_iface.c | 30 | 
1 files changed, 15 insertions, 15 deletions
| diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index d5d8d555c410..956b7e47dc52 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -300,26 +300,26 @@ int lapb_disconnect_request(struct net_device *dev)  		goto out;  	switch (lapb->state) { -		case LAPB_STATE_0: -			rc = LAPB_NOTCONNECTED; -			goto out_put; +	case LAPB_STATE_0: +		rc = LAPB_NOTCONNECTED; +		goto out_put; -		case LAPB_STATE_1: +	case LAPB_STATE_1:  #if LAPB_DEBUG > 1 -			printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->dev); +		printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->dev);  #endif  #if LAPB_DEBUG > 0 -			printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev); +		printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev);  #endif -			lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND); -			lapb->state = LAPB_STATE_0; -			lapb_start_t1timer(lapb); -			rc = LAPB_NOTCONNECTED; -			goto out_put; - -		case LAPB_STATE_2: -			rc = LAPB_OK; -			goto out_put; +		lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND); +		lapb->state = LAPB_STATE_0; +		lapb_start_t1timer(lapb); +		rc = LAPB_NOTCONNECTED; +		goto out_put; + +	case LAPB_STATE_2: +		rc = LAPB_OK; +		goto out_put;  	}  	lapb_clear_queues(lapb); |