sctp: kill unused macros in head file
authorShan Wei <shanwei@cn.fujitsu.com>
Mon, 29 Nov 2010 00:14:58 +0000 (00:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2010 17:41:12 +0000 (09:41 -0800)
1. SCTP_CMD_NUM_VERBS,SCTP_CMD_MAX
These two macros have never been used for several years since v2.6.12-rc2.

2.sctp_port_rover,sctp_port_alloc_lock
The commit 063930 abandoned global variables of port_rover and port_alloc_lock,
but still keep two macros to refer to them.
So, remove them now.

commit 06393009000779b00a558fd2f280882cc7dc2008
Author: Stephen Hemminger <shemminger@linux-foundation.org>
Date:   Wed Oct 10 17:30:18 2007 -0700

    [SCTP]: port randomization

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/command.h
include/net/sctp/structs.h

index 2c55a7ea20af016ebd6ca1982a0fe5e171b71f83..c01dc99def072c39ebf8f2c4344217c04cb2d5c1 100644 (file)
@@ -111,9 +111,6 @@ typedef enum {
        SCTP_CMD_LAST
 } sctp_verb_t;
 
-#define SCTP_CMD_MAX           (SCTP_CMD_LAST - 1)
-#define SCTP_CMD_NUM_VERBS     (SCTP_CMD_MAX + 1)
-
 /* How many commands can you put in an sctp_cmd_seq_t?
  * This is a rather arbitrary number, ideally derived from a careful
  * analysis of the state functions, but in reality just taken from
index 69fef4fb79c078e775520fa047b15c92e88f6116..cc9185ca8fd13db1d64616101f2c97222fcab6fb 100644 (file)
@@ -261,8 +261,6 @@ extern struct sctp_globals {
 #define sctp_assoc_hashsize            (sctp_globals.assoc_hashsize)
 #define sctp_assoc_hashtable           (sctp_globals.assoc_hashtable)
 #define sctp_port_hashsize             (sctp_globals.port_hashsize)
-#define sctp_port_rover                        (sctp_globals.port_rover)
-#define sctp_port_alloc_lock           (sctp_globals.port_alloc_lock)
 #define sctp_port_hashtable            (sctp_globals.port_hashtable)
 #define sctp_local_addr_list           (sctp_globals.local_addr_list)
 #define sctp_local_addr_lock           (sctp_globals.addr_list_lock)