Skip to contentSkip to conversation

affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY

PATCH In review Thorsten Blum 2 participants 2 messages Aug 15, 2024 – Aug 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY

The macros GET_END_PTR() and AFFS_GET_HASHENTRY() are not used anymore and can be removed. Remove them.

---
 fs/affs/affs.h | 2 --
 1 file changed, 2 deletions(-)
fs/affs/affs.h +0 -2
index 2e612834329a..e8c2c4535cb3 100644
@@ -14,8 +14,6 @@
 
 /* Ugly macros make the code more pretty. */
 
-#define GET_END_PTR(st,p,sz)		 ((st *)((char *)(p)+((sz)-sizeof(st))))
-#define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey])
 #define AFFS_BLOCK(sb, bh, blk)		(AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)])
 
 #define AFFS_HEAD(bh)		((struct affs_head *)(bh)->b_data)
Signature · 1 line
2.39.2