security:selinux: kill unused MAX_AVTAB_HASH_MASK and ebitmap_startbit
authorShan Wei <shanwei@cn.fujitsu.com>
Wed, 19 Jan 2011 09:21:44 +0000 (17:21 +0800)
committerJames Morris <jmorris@namei.org>
Sun, 23 Jan 2011 23:36:11 +0000 (10:36 +1100)
Kill unused MAX_AVTAB_HASH_MASK and ebitmap_startbit.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/avtab.h
security/selinux/ss/ebitmap.h

index dff0c75..3417f9c 100644 (file)
@@ -86,7 +86,6 @@ void avtab_cache_destroy(void);
 
 #define MAX_AVTAB_HASH_BITS 11
 #define MAX_AVTAB_HASH_BUCKETS (1 << MAX_AVTAB_HASH_BITS)
-#define MAX_AVTAB_HASH_MASK (MAX_AVTAB_HASH_BUCKETS-1)
 
 #endif /* _SS_AVTAB_H_ */
 
index 1f4e93c..922f8af 100644 (file)
@@ -36,7 +36,6 @@ struct ebitmap {
 };
 
 #define ebitmap_length(e) ((e)->highbit)
-#define ebitmap_startbit(e) ((e)->node ? (e)->node->startbit : 0)
 
 static inline unsigned int ebitmap_start_positive(struct ebitmap *e,
                                                  struct ebitmap_node **n)