Commit ccbd6a5a authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

net: Remove unnecessary semicolons after switch statements



Also added an explicit break; to avoid
a fallthrough in net/ipv4/tcp_input.c

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 935e2a26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ int vlan_hwaccel_do_receive(struct sk_buff *skb)
					dev->dev_addr))
			skb->pkt_type = PACKET_HOST;
		break;
	};
	}
	return 0;
}

+2 −2
Original line number Diff line number Diff line
@@ -522,7 +522,7 @@ static int ethtool_get_rx_ntuple(struct net_device *dev, void __user *useraddr)
			p += ETH_GSTRING_LEN;
			num_strings++;
			goto unknown_filter;
		};
		}

		/* now the rest of the filters */
		switch (fsc->fs.flow_type) {
@@ -646,7 +646,7 @@ static int ethtool_get_rx_ntuple(struct net_device *dev, void __user *useraddr)
			p += ETH_GSTRING_LEN;
			num_strings++;
			break;
		};
		}
		sprintf(p, "\tVLAN: %d, mask: 0x%x\n",
			fsc->fs.vlan_tag, fsc->fs.vlan_tag_mask);
		p += ETH_GSTRING_LEN;
+1 −1
Original line number Diff line number Diff line
@@ -2215,7 +2215,7 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
	default:
		/* fallthru */
		break;
	};
	}

	if (optlen < sizeof(int))
		return -EINVAL;
+3 −2
Original line number Diff line number Diff line
@@ -3845,12 +3845,13 @@ void tcp_parse_options(struct sk_buff *skb, struct tcp_options_received *opt_rx,
					/* 16-bit multiple */
					opt_rx->cookie_plus = opsize;
					*hvpp = ptr;
					break;
				default:
					/* ignore option */
					break;
				};
				}
				break;
			};
			}

			ptr += opsize-2;
			length -= opsize;
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ void rds_tcp_conn_shutdown(struct rds_connection *conn)

		release_sock(sock->sk);
		sock_release(sock);
	};
	}

	if (tc->t_tinc) {
		rds_inc_put(&tc->t_tinc->ti_inc);
Loading