Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bf1692f authored by Tetsuo Handa's avatar Tetsuo Handa Committed by James Morris
Browse files

TOMOYO: Remove unused field.



TOMOYO 2.2.0 is not using total_len field of "struct tomoyo_path_info".

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 0b4ec6e4
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -428,7 +428,6 @@ void tomoyo_fill_path_info(struct tomoyo_path_info *ptr)
	const char *name = ptr->name;
	const char *name = ptr->name;
	const int len = strlen(name);
	const int len = strlen(name);


	ptr->total_len = len;
	ptr->const_len = tomoyo_const_part_length(name);
	ptr->const_len = tomoyo_const_part_length(name);
	ptr->is_dir = len && (name[len - 1] == '/');
	ptr->is_dir = len && (name[len - 1] == '/');
	ptr->is_patterned = (ptr->const_len < len);
	ptr->is_patterned = (ptr->const_len < len);
+0 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,6 @@ struct tomoyo_page_buffer {
struct tomoyo_path_info {
struct tomoyo_path_info {
	const char *name;
	const char *name;
	u32 hash;          /* = full_name_hash(name, strlen(name)) */
	u32 hash;          /* = full_name_hash(name, strlen(name)) */
	u16 total_len;     /* = strlen(name)                       */
	u16 const_len;     /* = tomoyo_const_part_length(name)     */
	u16 const_len;     /* = tomoyo_const_part_length(name)     */
	bool is_dir;       /* = tomoyo_strendswith(name, "/")      */
	bool is_dir;       /* = tomoyo_strendswith(name, "/")      */
	bool is_patterned; /* = tomoyo_path_contains_pattern(name) */
	bool is_patterned; /* = tomoyo_path_contains_pattern(name) */