diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/tomoyo/common.c | 1 | ||||
-rw-r--r-- | security/tomoyo/common.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 6d2561276a7b..a44f655b3913 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c | |||
@@ -428,7 +428,6 @@ void tomoyo_fill_path_info(struct tomoyo_path_info *ptr) | |||
428 | const char *name = ptr->name; | 428 | const char *name = ptr->name; |
429 | const int len = strlen(name); | 429 | const int len = strlen(name); |
430 | 430 | ||
431 | ptr->total_len = len; | ||
432 | ptr->const_len = tomoyo_const_part_length(name); | 431 | ptr->const_len = tomoyo_const_part_length(name); |
433 | ptr->is_dir = len && (name[len - 1] == '/'); | 432 | ptr->is_dir = len && (name[len - 1] == '/'); |
434 | ptr->is_patterned = (ptr->const_len < len); | 433 | ptr->is_patterned = (ptr->const_len < len); |
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index 678f4ff16aa4..d8b95047cb9d 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -35,7 +35,6 @@ struct tomoyo_page_buffer { | |||
35 | struct tomoyo_path_info { | 35 | struct tomoyo_path_info { |
36 | const char *name; | 36 | const char *name; |
37 | u32 hash; /* = full_name_hash(name, strlen(name)) */ | 37 | u32 hash; /* = full_name_hash(name, strlen(name)) */ |
38 | u16 total_len; /* = strlen(name) */ | ||
39 | u16 const_len; /* = tomoyo_const_part_length(name) */ | 38 | u16 const_len; /* = tomoyo_const_part_length(name) */ |
40 | bool is_dir; /* = tomoyo_strendswith(name, "/") */ | 39 | bool is_dir; /* = tomoyo_strendswith(name, "/") */ |
41 | bool is_patterned; /* = tomoyo_path_contains_pattern(name) */ | 40 | bool is_patterned; /* = tomoyo_path_contains_pattern(name) */ |