diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-02-15 04:40:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-16 15:26:34 -0500 |
commit | da0a75e86ae230f92743c073843d3ea35bd061af (patch) | |
tree | 0d9399dc7925997a99590a8c65788768cf5aa588 /net/tipc/server.c | |
parent | 242e82cc95f6b4e83e1771f9915edcb2a63708e1 (diff) |
tipc: some prefix changes
Since we now have removed struct tipc_subscriber from the code, and
only struct tipc_subscription remains, there is no longer need for long
and awkward prefixes to distinguish between their pertaining functions.
We now change all tipc_subscrp_* prefixes to tipc_sub_*. This is
a purely cosmetic change.
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/server.c')
-rw-r--r-- | net/tipc/server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tipc/server.c b/net/tipc/server.c index 6a18b10ac271..a5c112ed3bbe 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c | |||
@@ -201,7 +201,7 @@ static void tipc_con_delete_sub(struct tipc_conn *con, struct tipc_subscr *s) | |||
201 | struct tipc_subscription *sub, *tmp; | 201 | struct tipc_subscription *sub, *tmp; |
202 | 202 | ||
203 | spin_lock_bh(&con->sub_lock); | 203 | spin_lock_bh(&con->sub_lock); |
204 | list_for_each_entry_safe(sub, tmp, sub_list, subscrp_list) { | 204 | list_for_each_entry_safe(sub, tmp, sub_list, sub_list) { |
205 | if (!s || !memcmp(s, &sub->evt.s, sizeof(*s))) | 205 | if (!s || !memcmp(s, &sub->evt.s, sizeof(*s))) |
206 | tipc_sub_unsubscribe(sub); | 206 | tipc_sub_unsubscribe(sub); |
207 | else if (s) | 207 | else if (s) |
@@ -281,9 +281,8 @@ static int tipc_con_rcv_sub(struct tipc_server *srv, | |||
281 | sub = tipc_sub_subscribe(srv, s, con->conid); | 281 | sub = tipc_sub_subscribe(srv, s, con->conid); |
282 | if (!sub) | 282 | if (!sub) |
283 | return -1; | 283 | return -1; |
284 | |||
285 | spin_lock_bh(&con->sub_lock); | 284 | spin_lock_bh(&con->sub_lock); |
286 | list_add(&sub->subscrp_list, &con->sub_list); | 285 | list_add(&sub->sub_list, &con->sub_list); |
287 | spin_unlock_bh(&con->sub_lock); | 286 | spin_unlock_bh(&con->sub_lock); |
288 | return 0; | 287 | return 0; |
289 | } | 288 | } |