TOMOYO: Remove unused field.
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Fri, 5 Jun 2009 05:44:58 +0000 (14:44 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 8 Jun 2009 23:30:21 +0000 (09:30 +1000)
TOMOYO 2.2.0 is not using total_len field of "struct tomoyo_path_info".

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/common.c
security/tomoyo/common.h

index 6d2561276a7b13b8266c382358d6750efcb89814..a44f655b3913cc2e9c0938a9e0e44399c6181564 100644 (file)
@@ -428,7 +428,6 @@ void tomoyo_fill_path_info(struct tomoyo_path_info *ptr)
        const char *name = ptr->name;
        const int len = strlen(name);
 
-       ptr->total_len = len;
        ptr->const_len = tomoyo_const_part_length(name);
        ptr->is_dir = len && (name[len - 1] == '/');
        ptr->is_patterned = (ptr->const_len < len);
index 678f4ff16aa4477eb7b6f4e44d744dc6aac4f932..d8b95047cb9d156c5779fdf1378ebb770e5bed33 100644 (file)
@@ -35,7 +35,6 @@ struct tomoyo_page_buffer {
 struct tomoyo_path_info {
        const char *name;
        u32 hash;          /* = full_name_hash(name, strlen(name)) */
-       u16 total_len;     /* = strlen(name)                       */
        u16 const_len;     /* = tomoyo_const_part_length(name)     */
        bool is_dir;       /* = tomoyo_strendswith(name, "/")      */
        bool is_patterned; /* = tomoyo_path_contains_pattern(name) */