diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-07-15 01:42:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-15 01:42:19 -0400 |
commit | 0ea522416b658dedfc9d565b331624a55a6260ad (patch) | |
tree | 3cfa3e72bae112b76d5810bd55a9610b29e42f26 /include | |
parent | 3cb29b1bca00736e984ea8ab368af40394a1bca0 (diff) |
tipc: Remove unneeded parameter to tipc_createport_raw()
This patch eliminates an unneeded parameter when creating a low-level
TIPC port object. Instead of returning both the pointer to the port
structure and the port's reference ID, it now returns only the pointer
since the port structure contains the reference ID as one of its fields.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tipc/tipc_port.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/net/tipc/tipc_port.h b/include/net/tipc/tipc_port.h index 9923e41a8215..c54917cbfa48 100644 --- a/include/net/tipc/tipc_port.h +++ b/include/net/tipc/tipc_port.h | |||
@@ -2,7 +2,7 @@ | |||
2 | * include/net/tipc/tipc_port.h: Include file for privileged access to TIPC ports | 2 | * include/net/tipc/tipc_port.h: Include file for privileged access to TIPC ports |
3 | * | 3 | * |
4 | * Copyright (c) 1994-2007, Ericsson AB | 4 | * Copyright (c) 1994-2007, Ericsson AB |
5 | * Copyright (c) 2005-2007, Wind River Systems | 5 | * Copyright (c) 2005-2008, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -75,17 +75,10 @@ struct tipc_port { | |||
75 | }; | 75 | }; |
76 | 76 | ||
77 | 77 | ||
78 | /** | 78 | struct tipc_port *tipc_createport_raw(void *usr_handle, |
79 | * tipc_createport_raw - create a native TIPC port and return it's reference | ||
80 | * | ||
81 | * Note: 'dispatcher' and 'wakeup' deliver a locked port. | ||
82 | */ | ||
83 | |||
84 | u32 tipc_createport_raw(void *usr_handle, | ||
85 | u32 (*dispatcher)(struct tipc_port *, struct sk_buff *), | 79 | u32 (*dispatcher)(struct tipc_port *, struct sk_buff *), |
86 | void (*wakeup)(struct tipc_port *), | 80 | void (*wakeup)(struct tipc_port *), |
87 | const u32 importance, | 81 | const u32 importance); |
88 | struct tipc_port **tp_ptr); | ||
89 | 82 | ||
90 | int tipc_reject_msg(struct sk_buff *buf, u32 err); | 83 | int tipc_reject_msg(struct sk_buff *buf, u32 err); |
91 | 84 | ||