tipc: rename tipc_createport_raw to tipc_createport
authorYing Xue <ying.xue@windriver.com>
Mon, 17 Jun 2013 14:54:44 +0000 (10:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2013 22:53:01 +0000 (15:53 -0700)
After the removal of the native API, there is now only one way to
to create a TIPC port instance -- the function tipc_createport_raw().
We make it more readable by renaming it to tipc_createport().

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/port.c
net/tipc/port.h
net/tipc/socket.c

index f628c84a8f61c75cb04f25d2edef535e9c425968..84b2a574f16155db709f7fc5ab750fd171ce23c6 100644 (file)
@@ -202,11 +202,11 @@ exit:
 }
 
 /**
- * tipc_createport_raw - create a generic TIPC port
+ * tipc_createport - create a generic TIPC port
  *
  * Returns pointer to (locked) TIPC port, or NULL if unable to create it
  */
-struct tipc_port *tipc_createport_raw(void *usr_handle,
+struct tipc_port *tipc_createport(void *usr_handle,
                        u32 (*dispatcher)(struct tipc_port *, struct sk_buff *),
                        void (*wakeup)(struct tipc_port *),
                        const u32 importance)
index 4779f0a8223454c6d29b0cd1c14fb9f4736e316b..45838826f2f8e7751604ea047f6778ddcf541870 100644 (file)
@@ -106,7 +106,7 @@ struct tipc_port_list;
 /*
  * TIPC port manipulation routines
  */
-struct tipc_port *tipc_createport_raw(void *usr_handle,
+struct tipc_port *tipc_createport(void *usr_handle,
                u32 (*dispatcher)(struct tipc_port *, struct sk_buff *),
                void (*wakeup)(struct tipc_port *), const u32 importance);
 
index 9510fe8acf45bad89342ab194430a37851110135..67f4e1fbf5a17f8e051e4262d7814b0ac47ff568 100644 (file)
@@ -195,8 +195,8 @@ static int tipc_sk_create(struct net *net, struct socket *sock, int protocol,
                return -ENOMEM;
 
        /* Allocate TIPC port for socket to use */
-       tp_ptr = tipc_createport_raw(sk, &dispatch, &wakeupdispatch,
-                                    TIPC_LOW_IMPORTANCE);
+       tp_ptr = tipc_createport(sk, &dispatch, &wakeupdispatch,
+                                TIPC_LOW_IMPORTANCE);
        if (unlikely(!tp_ptr)) {
                sk_free(sk);
                return -ENOMEM;