提交 181b1e9c 编写于 作者: J Joe Perches 提交者: David S. Miller

netfilter: Reduce switch/case indent

Make the case labels the same indent as the switch.

git diff -w shows miscellaneous 80 column wrapping,
comment reflowing and a comment for a useless gcc
warning for an otherwise unused default: case.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1d67a516
...@@ -322,13 +322,13 @@ clusterip_tg(struct sk_buff *skb, const struct xt_action_param *par) ...@@ -322,13 +322,13 @@ clusterip_tg(struct sk_buff *skb, const struct xt_action_param *par)
break; break;
case IP_CT_RELATED: case IP_CT_RELATED:
case IP_CT_RELATED_REPLY: case IP_CT_RELATED_REPLY:
/* FIXME: we don't handle expectations at the /* FIXME: we don't handle expectations at the moment.
* moment. they can arrive on a different node than * They can arrive on a different node than
* the master connection (e.g. FTP passive mode) */ * the master connection (e.g. FTP passive mode) */
case IP_CT_ESTABLISHED: case IP_CT_ESTABLISHED:
case IP_CT_ESTABLISHED_REPLY: case IP_CT_ESTABLISHED_REPLY:
break; break;
default: default: /* Prevent gcc warnings */
break; break;
} }
......
...@@ -725,8 +725,7 @@ static unsigned char snmp_object_decode(struct asn1_ctx *ctx, ...@@ -725,8 +725,7 @@ static unsigned char snmp_object_decode(struct asn1_ctx *ctx,
kfree(id); kfree(id);
return 0; return 0;
} }
*obj = kmalloc(sizeof(struct snmp_object) + len, *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC);
GFP_ATOMIC);
if (*obj == NULL) { if (*obj == NULL) {
kfree(id); kfree(id);
if (net_ratelimit()) if (net_ratelimit())
...@@ -741,8 +740,7 @@ static unsigned char snmp_object_decode(struct asn1_ctx *ctx, ...@@ -741,8 +740,7 @@ static unsigned char snmp_object_decode(struct asn1_ctx *ctx,
kfree(id); kfree(id);
return 0; return 0;
} }
*obj = kmalloc(sizeof(struct snmp_object) + len, *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC);
GFP_ATOMIC);
if (*obj == NULL) { if (*obj == NULL) {
kfree(p); kfree(p);
kfree(id); kfree(id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册