diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-11-04 13:24:29 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-02-24 17:05:16 -0500 |
commit | 5f6d9123f1c7ef7297b0da1620988fe16c738e75 (patch) | |
tree | f26998d63d8263bdd67a52d54a6f58e0332e0fba /net/tipc/net.c | |
parent | a635b46bd884efc1fc98819cb5a200da255d575c (diff) |
tipc: Eliminate trivial buffer manipulation helper routines
Gets rid of two inlined routines that simply call existing sk_buff
manipulation routines, since there is no longer any extra processing
done by the helper routines.
Note that these changes are essentially cosmetic in nature, and have
no impact on the actual operation of TIPC.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 61afee7e8291..2abd4be4933e 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
@@ -117,7 +117,7 @@ static void net_route_named_msg(struct sk_buff *buf) | |||
117 | u32 dport; | 117 | u32 dport; |
118 | 118 | ||
119 | if (!msg_named(msg)) { | 119 | if (!msg_named(msg)) { |
120 | buf_discard(buf); | 120 | kfree_skb(buf); |
121 | return; | 121 | return; |
122 | } | 122 | } |
123 | 123 | ||
@@ -161,7 +161,7 @@ void tipc_net_route_msg(struct sk_buff *buf) | |||
161 | tipc_port_recv_proto_msg(buf); | 161 | tipc_port_recv_proto_msg(buf); |
162 | break; | 162 | break; |
163 | default: | 163 | default: |
164 | buf_discard(buf); | 164 | kfree_skb(buf); |
165 | } | 165 | } |
166 | return; | 166 | return; |
167 | } | 167 | } |