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/port.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/port.c')
-rw-r--r-- | net/tipc/port.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index ba3268b8da42..c4b5a347037a 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -116,13 +116,13 @@ int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, | |||
116 | ibuf = skb_copy(buf, GFP_ATOMIC); | 116 | ibuf = skb_copy(buf, GFP_ATOMIC); |
117 | if (ibuf == NULL) { | 117 | if (ibuf == NULL) { |
118 | tipc_port_list_free(&dports); | 118 | tipc_port_list_free(&dports); |
119 | buf_discard(buf); | 119 | kfree_skb(buf); |
120 | return -ENOMEM; | 120 | return -ENOMEM; |
121 | } | 121 | } |
122 | } | 122 | } |
123 | res = tipc_bclink_send_msg(buf); | 123 | res = tipc_bclink_send_msg(buf); |
124 | if ((res < 0) && (dports.count != 0)) | 124 | if ((res < 0) && (dports.count != 0)) |
125 | buf_discard(ibuf); | 125 | kfree_skb(ibuf); |
126 | } else { | 126 | } else { |
127 | ibuf = buf; | 127 | ibuf = buf; |
128 | } | 128 | } |
@@ -187,7 +187,7 @@ void tipc_port_recv_mcast(struct sk_buff *buf, struct tipc_port_list *dp) | |||
187 | } | 187 | } |
188 | } | 188 | } |
189 | exit: | 189 | exit: |
190 | buf_discard(buf); | 190 | kfree_skb(buf); |
191 | tipc_port_list_free(dp); | 191 | tipc_port_list_free(dp); |
192 | } | 192 | } |
193 | 193 | ||
@@ -420,7 +420,7 @@ int tipc_reject_msg(struct sk_buff *buf, u32 err) | |||
420 | else | 420 | else |
421 | tipc_link_send(rbuf, src_node, msg_link_selector(rmsg)); | 421 | tipc_link_send(rbuf, src_node, msg_link_selector(rmsg)); |
422 | exit: | 422 | exit: |
423 | buf_discard(buf); | 423 | kfree_skb(buf); |
424 | return data_sz; | 424 | return data_sz; |
425 | } | 425 | } |
426 | 426 | ||
@@ -568,7 +568,7 @@ void tipc_port_recv_proto_msg(struct sk_buff *buf) | |||
568 | tipc_port_unlock(p_ptr); | 568 | tipc_port_unlock(p_ptr); |
569 | exit: | 569 | exit: |
570 | tipc_net_route_msg(r_buf); | 570 | tipc_net_route_msg(r_buf); |
571 | buf_discard(buf); | 571 | kfree_skb(buf); |
572 | } | 572 | } |
573 | 573 | ||
574 | static void port_print(struct tipc_port *p_ptr, struct print_buf *buf, int full_id) | 574 | static void port_print(struct tipc_port *p_ptr, struct print_buf *buf, int full_id) |
@@ -759,7 +759,7 @@ static void port_dispatcher_sigh(void *dummy) | |||
759 | } | 759 | } |
760 | } | 760 | } |
761 | if (buf) | 761 | if (buf) |
762 | buf_discard(buf); | 762 | kfree_skb(buf); |
763 | buf = next; | 763 | buf = next; |
764 | continue; | 764 | continue; |
765 | err: | 765 | err: |
@@ -813,7 +813,7 @@ err: | |||
813 | } | 813 | } |
814 | } | 814 | } |
815 | if (buf) | 815 | if (buf) |
816 | buf_discard(buf); | 816 | kfree_skb(buf); |
817 | buf = next; | 817 | buf = next; |
818 | continue; | 818 | continue; |
819 | reject: | 819 | reject: |