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 dff0c75345c1642fd2b3181a6677035947834951..3417f9cc1cbd2d547a24abcb7db061c0391ab508 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 1f4e93c2ae8695430c4a9ff33cfd31e7d36cec36..922f8afa89dd5837e2617daaf793db0e40ad009e 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)